Posted by sirloon on March 4, 2009 at 8:41am
Jump to:
| Project: | FusionCharts |
| Version: | 6.x-1.x-dev |
| Component: | FusionCharts core |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
When providing a data set with zero values (or null, ...), the generated XML does not contain empty "set" XML element. As a consequence, these data points are not plotted. This is due to filters in fusioncharts.module, which discard any empty data which is empty or not numeric.
Ex: function _fusioncharts_data_single()
The following test should be enough as a filter, and should still allow to plot zero values:
function _fusioncharts_data_single($data, $attributes = array(), $jsid = NULL) {
foreach ($data as $column) {
if ($column[0] != '' && is_numeric($column[1])) {
$clean_data[] = $column;
}
}
...
}
Comments
#1
Thanks,
committed (with a slight variation)
#2
Thanks for your fast commit ! Works like charm !
Seb
#3
Automatically closed -- issue fixed for 2 weeks with no activity.