PHP Classes

Pie Chart bug

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in Bookmark in

      Libchart  >  All threads  >  Pie Chart bug  >  (Un) Subscribe thread alerts  
Subject:Pie Chart bug
Summary:The chart plot only one color
Date:2009-12-16 11:00:02

  1. Pie Chart bug   Reply   Report abuse  
Picture of Andy Andy - 2009-12-16 11:00:02
Hi man! I like your libchart but Pie chart don't properly runs if the values have big distances... It plot only one color.
Please fix this bug !
My compliments

See this:
<?php include "../libchart/classes/libchart.php";
$chart = new PieChart(500, 250);
$dataSet = new XYDataSet();
$dataSet->addPoint(new Point("Mozilla Firefox (80)", 80));
$dataSet->addPoint(new Point("Konqueror (75)", 75));
$dataSet->addPoint(new Point("Gaspare (50)", 50));
$dataSet->addPoint(new Point("Montee (200)", 200));
$dataSet->addPoint(new Point("Bacuc (1)", 1));

$chart->setTitle("User agents for");