Permalink
Browse files

Make bar charts use whole numbers in the scale

  • Loading branch information...
1 parent 5a4db4a commit 1e43de6bc166ae325ec2ee6f2b560db047df9cd7 @LegNeato LegNeato committed Apr 16, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 BugzillaOutput.class.php
View
@@ -136,7 +136,7 @@ public function generate_chart($chart_name)
$pImage = new pImage(600,300, $pData);
$pImage->setFontProperties(array('FontName' => $wgBugzillaFontStorage . '/verdana.ttf', 'FontSize' => 6));
$pImage->setGraphArea(75, 30, 580, 280);
- $pImage->drawScale(array("CycleBackground"=>TRUE,"DrawSubTicks"=>FALSE,"GridR"=>0,"GridG"=>0,"GridB"=>0,"GridAlpha"=>10, "Pos"=>SCALE_POS_TOPBOTTOM));
+ $pImage->drawScale(array("CycleBackground"=>TRUE,'Factors'=>array(1),"DrawSubTicks"=>FALSE,"GridR"=>0,"GridG"=>0,"GridB"=>0,"GridAlpha"=>10, "Pos"=>SCALE_POS_TOPBOTTOM));
$pImage->drawBarChart();
$pImage->render($wgBugzillaChartStorage . '/' . $chart_name . '.png');

0 comments on commit 1e43de6

Please sign in to comment.