This is different from what you want. As a part of our requirement, we wanted the negative values to appear as (value). e.g. -100 on y-axis should appear as (100)
One of my teammates found this [1] from chart api link page[2]. The solution is to give the pattern "as specified by the java DecimalFormat class.<http://icu-project.org/apiref/icu4j/com/ibm/icu/text/DecimalFormat.html> " Sample code: *options["vAxes"] = { 0: { title: leftLabel, format: "#,##0;(#,##0)" }, 1: { title: rightLabel, format: "#,##0;(#,##0)" } };* -little [1] - http://icu-project.org/apiref/icu4j/com/ibm/icu/text/DecimalFormat.html [2] - https://developers.google.com/chart/interactive/docs/gallery/annotatedtimeline?csw=1#Data_Format On Thursday, January 1, 2009 12:42:34 AM UTC+5:30, Mike Gates wrote: > > Is there a way to make the y-axis labels appear differently based on > whether they are a negative number or not? For example, I want > negative y-axis values to appear red... -- You received this message because you are subscribed to the Google Groups "Google Chart 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 http://groups.google.com/group/google-chart-api. For more options, visit https://groups.google.com/groups/opt_out.
