Try this
if (($i%$spacing) == 0) {
$info->attributes['showName'][$row['name']] = 1;
}
else {
$info->attributes['showName'][$row['name']] = 0;
}
It works for regular graphs but does not for Multi-series.
The solution is to modify fusioncharts.module line 724
Before
foreach ($categories as $this_category) {
$str_xml .= "<category name='". fusioncharts_entities(trim($this_category)) ."' ".$showname."/>\n";
}
After
foreach ($categories as $this_category) {
if (isset($attributes['showName'][$this_category])) {
$showname = "showName='{$attributes['showName'][$this_category]}'";
}
$str_xml .= "<category name='". fusioncharts_entities(trim($this_category)) ."' ".$showname."/>\n";
}
Comments
Comment #1
rar commentedI've seen lots of "where is the maintainer" for patches that have been submitted. I don't have the cycles to be a maintainer, but if you want me to upload this to CVS I can if you want. Its an easy patch.
Comment #2
aaron1234nz commentedThanks for the patch