convertOptions()

149 views
Skip to first unread message

Chris

unread,
Oct 28, 2015, 11:04:32 AM10/28/15
to Google Visualization API
Up until now I was able to set the google.charts.Bar.convertOptions(optionsCount) in order to show a subtitle, and it worked, but only when creating a BarChart. 

What if I want to use the convertOptions() when dealing with a AreaChart?

google.load("visualization", "1", {packages:["corechart"]});


var chart = new google.visualization.AreaChart(document.getElementById('chart_div'));


Thank you very much

Sergey Grabkovsky

unread,
Oct 28, 2015, 11:11:55 AM10/28/15
to Google Visualization API
AreaChart does not require convertOptions, since it is one of the older charts. convertOptions is built for the purpose of giving us flexibility to develop a new options structure and change it at will while retaining compatibility with the Classic (documented) options structure for our new Material charts. Since AreaChart is not a Material chart, but a Classic chart, it does not support the new options structure, which means that it doesn't need convertOptions, which also (only incidentally) means it doesn't support subtitles.

--
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 google-visualizati...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/15a00519-8389-4b1d-a0da-79ce0a170ca4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
unnamed.gif 
Sergey Grabkovsky | SWE  | gra...@google.com

Chris

unread,
Oct 29, 2015, 7:20:23 AM10/29/15
to Google Visualization API
Clear... thank you


On Wednesday, October 28, 2015 at 4:11:55 PM UTC+1, Sergey wrote:
AreaChart does not require convertOptions, since it is one of the older charts. convertOptions is built for the purpose of giving us flexibility to develop a new options structure and change it at will while retaining compatibility with the Classic (documented) options structure for our new Material charts. Since AreaChart is not a Material chart, but a Classic chart, it does not support the new options structure, which means that it doesn't need convertOptions, which also (only incidentally) means it doesn't support subtitles.

On Wed, Oct 28, 2015 at 11:04 AM Chris <kain...@gmail.com> wrote:
Up until now I was able to set the google.charts.Bar.convertOptions(optionsCount) in order to show a subtitle, and it worked, but only when creating a BarChart. 

What if I want to use the convertOptions() when dealing with a AreaChart?

google.load("visualization", "1", {packages:["corechart"]});


var chart = new google.visualization.AreaChart(document.getElementById('chart_div'));


Thank you very much

--
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 google-visualization-api+unsub...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages