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: bar_axis_position1.example.phpNext: bar_column_spacing3.example.php

Example Chart: pie_3d_hardness1.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( 0, 0 );
 
  $pie->drawPNG( 500, 400 );
Home  |  Online Store  |  Documentation  |  ChartLogix Features  |  Terms & Conditions Copyright © 2024 CubeLogix Ltd