The attached patch fixes:
* an issue where in ",|" was being passed in the url when using xy-line charts
* an issue where legitimate 0 values were being converted to -1. The patch checks for type null rather than a false
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | chart_good.png | 23.2 KB | andyceo |
| #4 | chart_bad.png | 12.91 KB | andyceo |
| #3 | Screenshot.png | 19.71 KB | sivaji_ganesh_jojodae |
| chart.module.patch | 538 bytes | jhedstrom |
Comments
Comment #1
tjholowaychuk commentedComment #2
xen commentedI've run into the same 0 value problem. I've fixed it by doing:
if ($v !== 'NULL'){
Instead of:
if ($v != 'NULL'){
In _chart_encode_data.
Comment #3
sivaji_ganesh_jojodae commentedpatch works
Comment #4
andyceo commentedI spend a lot of time to find why my pie diagramm is drawning incorrectly.
I have this data for diagramm (after adjusting resolution):
After
$data['chd'] = 't:' . _chart_encode_data($chart['#data']);in function chart_build($chart) in file chart.module in line 285, I have the following encoded data:And the diagramm looked WRONG.
After applying this patch in the file chart.module in line 384:
if ($v != 'NULL'){-->if ($v !== 'NULL'){Diagramm looks RIGHT.
So, please, commit this very needed patch!
Comment #5
andyceo commentedForget to change the version.
Comment #6
jeremy commentedSubscribe.
Comment #7
andyceo commentedDear boombatower,
please, commit fixes for that bug!
Comment #8
13rac1 commented#617194: Wrong data on chart after adjust_resolution is a dupe of this.
Additional patch located in: http://drupal.org/node/617194#comment-4859054
Comment #9
13rac1 commented