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?
    – andileco
    Commented 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.
    – andileco
    Commented Dec 17, 2018 at 18:49

1 Answer 1


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;


  $format = $prefix . '#0' . $decimal_count . $suffix;

enter image description here

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.