Skip to content

Commit

Permalink
Make bar charts use whole numbers in the scale
Browse files Browse the repository at this point in the history
  • Loading branch information
LegNeato committed May 16, 2012
1 parent 5a4db4a commit 1e43de6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion BugzillaOutput.class.php
Expand Up @@ -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');
Expand Down

0 comments on commit 1e43de6

Please sign in to comment.