Skip to content

Commit

Permalink
Fixed issue #3519: Graph legends are not visible well on IE6
Browse files Browse the repository at this point in the history
git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/limesurvey@7391 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
c-schmitz committed Aug 2, 2009
1 parent 244f809 commit 3ff37d0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion admin/statistics.php
Expand Up @@ -4266,7 +4266,7 @@
// Draw the pie chart
$graph->setFontProperties($rootdir."/fonts/".$chartfontfile, $chartfontsize);
$graph->drawPieGraph($DataSet->GetData(),$DataSet->GetDataDescription(),225,round($gheight/2),170,PIE_PERCENTAGE,TRUE,50,20,5);
$graph->setFontProperties($rootdir."/fonts/".$chartfontfile,$chartfontsize);
//$graph->setFontProperties($rootdir."/fonts/".$chartfontfile,$chartfontsize);
$graph->drawPieLegend(430,12,$DataSet->GetData(),$DataSet->GetDataDescription(),250,250,250);
$MyCache->WriteToCache("graph".$surveyid,$DataSet->GetData(),$graph);
$cachefilename=basename($MyCache->GetFileFromCache("graph".$surveyid,$DataSet->GetData()));
Expand Down
2 changes: 1 addition & 1 deletion classes/pchart/pchart/pChart.class
Expand Up @@ -1032,7 +1032,7 @@
if ( !isset($DataDescription["Position"]) )
return(-1);

$C_TextColor =$this->AllocateColor($this->Picture,0,0,0);
$C_TextColor =$this->AllocateColor($this->Picture,1,1,1);

/* <-10->[8]<-4->Text<-10-> */
$MaxWidth = 0; $MaxHeight = 8;
Expand Down

0 comments on commit 3ff37d0

Please sign in to comment.