Documentation Home
Examples
Pie Charts
Overview
Customizing the chart
Function Reference
Examples
Line & Bar Graphs
Overview
Adding data
Customizing the bars
Customizing the axes
Function Reference
Support
Installation
Version History
Technical Support

Pie Chart PHP Class - Customizing the chart

There are a variety of customization options which can make your charts stand out and look more professional.

set3DEdgeStyle - 3D Shading & Edge Effect

You can use the set3DEdgeStyle( size, hardness, reverse ) function to add shading and a 3D edge to the chart.

size Parameter

This controls the size of the 3D edge, from 0 (no 3D edge) to 100 (3D edge as large as it can be)

No Edge
set3DEdgeStyle( 0, 50 )
  
Small Edge
set3DEdgeStyle( 10, 50 )
  
Large Edge
set3DEdgeStyle( 40, 50 )

hardness Parameter

This controls the hardness of the shading, from 0 (no shading) to 100 (hard shading)

No Shading
set3DEdgeStyle( 0, 0 )
  
Hard Shading
set3DEdgeStyle( 0, 100 )
  
Shading with 3D edge
set3DEdgeStyle( 25, 50 )

reverse Parameter

This allows you to reverse the shading direction, making it appear as if the light source is above or below the chart.

Normal Shading
set3DEdgeStyle( 25, 50, false )
  
Reversed Shading
set3DEdgeStyle( 25, 50, true )

setHoleSize

You can use the setHoleSize( size ) function to add a hole to the chart.
This can be combined with the 3D edge and shading. These examples all use set3DEdgeStyle( 25, 25 ).

No Hole
setHoleSize( 0 )
  
Small Hole
setHoleSize( 25 )
  
Large Hole
setHoleSize( 75 )

Next Steps

The Examples Page contains some complete PHP scripts which generate pie charts.
The Function Reference Page gives you a complete list of functions which you can use to customise the deisgn of the pie chart.
The Pie Chart Designer allows you to interactively customise a pie chart and see the PHP code.
Home  |  Online Store  |  Documentation  |  ChartLogix Features  |  Terms & Conditions Copyright © 2024 CubeLogix Ltd