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
Previous: pie_3d_edge3.example.phpNext: pie_3d_reverse1.example.php

Example Chart: pie_3d_reverse2.example.php

<?php
  include( 'chartlogix.inc.php' );
  $pie = new PieChart();
  $pie->setLegendWidth( 0 );
 
  $pie->addData( 'Bananas', 420, 'FFCC00' );
  $pie->addData( 'Apples', 400, '99FF00' );
  $pie->addData( 'Strawberries', 210, 'FF6666' );
  $pie->addData( 'Grapes', 350, '009900' );
  $pie->addData( 'Plums', 100, '9900CC' );
  $pie->addData( 'Others', 190, 'AAAAAA' );
  $pie->set3DEdgeStyle( 25, 50, true );
 
  $pie->drawPNG( 500, 400 );
Home  |  Online Store  |  Documentation  |  ChartLogix Features  |  Terms & Conditions Copyright © 2024 CubeLogix Ltd