Login   Register  
PHP Classes
elePHPant
Icontem

Pie Chart bug

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

      Libchart  >  All threads  >  Pie Chart bug  >  (Un) Subscribe thread alerts  
Subject:Pie Chart bug
Summary:The chart plot only one color
Messages:1
Author:Andy
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
Andrea

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->setDataSet($dataSet);
$chart->setTitle("User agents for www.example.com");
$chart->render("generated/demo.png");
?>