I installed Charts with Google Charts in Drupal 7. Everything is ok, but when I have to use decimal numbers, with number 0.5 or 0.8, it appears to me .0 or .8 both on the vertical axis of my column chart and on the graph itself. Why?
-
Can you add a screenshot of your field settings for the decimal field?– andilecoCommented Dec 17, 2018 at 14:12
-
I also recommend making a duplicate of the display and then converting to a table to make sure the decimal field is showing up properly in that display.– andilecoCommented Dec 17, 2018 at 18:49
Add a comment
|
1 Answer
last night I'v found the problem and solve.
change the row in the file "charts_google.inc" row n. 223
from $format = $prefix . '#' . $decimal_count . $suffix;
to
$format = $prefix . '#0' . $decimal_count . $suffix;