Hi,
I wanted to remove negative number symbol from hAxis labels.
[image: Screenshot.png] <about:invalid#zClosurez>







I found a couple of solutions:
http://jsfiddle.net/dnenjgkg/119/
https://stackoverflow.com/questions/31486905/how-to-remove-negative-symbol-on-values-google-charts

However, they use old google charts library (as I've understood, because 
these resources could not be loaded), in which it works, but source code I 
use doesn't.
Source code I use: https://www.gstatic.com/charts/loader.js

*Problem*

hAxis: {
  format: ';'
}

does not work for negative values.
If format string is for example "prefix#suffix;prefix#suffix" 
    format: 'prefix#suffix;prefix#suffix'
it displays labels in this way:
  negative: -prefix[SomeInteger]suffix,
  positive: prefix[SomeInteger]suffix
'-' character continues to occur

google.visualization.NumberFormat(), however, works perfectly and numbers 
are displayed correctly in other parts of the chart, e.g. when hovering 
over a bar.

Thanks for Your time. 

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-visualization-api/29d7000b-a829-4fa5-bb64-81ed7e9e22a8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to