I would like to say that I really enjoy using the support module.
When looking at my charts, I saw the odd efect, that some charts show two 50% slices whereas the numbers are way different. After some research I found that either of the two is nessecary:
- getting the chart module to add the parameter
chds=0,100000000to the chart.apis.google.com URL, or - rescaling of all numbers, so that the sum is less or equal to 100, for example like this
foreach($chart['#data'] as $i=>$v) { $chart['#data'][$i] = $v / $count_total; }, before submitting the
$chartarray tochart_render.I attached a possible patch to the faulty support_chart module
| Comment | File | Size | Author |
|---|---|---|---|
| circumvent_implicit_maximum_of_100.patch | 2.13 KB | gogowitsch |
Comments
Comment #1
jeremy commentedThe Drupal chart api module had an option to automatically scale charts for us - I simply added this option when building the chart. Fix committed in 6.x-1.x:
http://drupalcode.org/project/support.git/commit/09c22fa
Comment #2
bdragon commentedPorted.
http://drupalcode.org/project/support.git/commit/918033a7fd865003ab1592a...
Comment #4
gogowitsch commentedThanks for the fix, the support_chart module is fine now. Unfortunately, the Chart API module seems to have an issue caused by improper rounding.