Material Line Charts options not working

1,655 views
Skip to first unread message

Marco Natalini

unread,
Jan 31, 2015, 6:24:16 AM1/31/15
to google-visua...@googlegroups.com
Hello
I'm trying to use new Material Chart version by loading version 1.1 of the library.
I've set various kinds of options, like curveType animation and focusTarget, but they don't works.

This is my option object:

var options = {
                  title: "my title",
                  legend: { position: 'bottom' },
                  width: "100%",
                  focusTarget: 'category',
                  curveType: 'function',
                  smoothingFactor: 0.8,
                  chartArea: {width: '90%', height: '80%'},
                  animation:{duration:1000, easing: 'out'}
};
Then I convert options with convertOptions method like this:
chart.draw(data, google.charts.Line.convertOptions(options));

maybe I forgot something?

Thanks for help.

Marco

Daniel LaLiberte

unread,
Jan 31, 2015, 2:15:04 PM1/31/15
to google-visua...@googlegroups.com
Marco,

Not all the old options work in the new charts yet.  If you want the new style with the old charts, you can try the 'theme': 'material' option.

--
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.
For more options, visit https://groups.google.com/d/optout.



--
dlaliberte@Google.com   5CC, Cambridge MA
daniel.laliberte@GMail.com 9 Juniper Ridge Road, Acton MA

Marco Natalini

unread,
Feb 3, 2015, 8:33:56 AM2/3/15
to google-visua...@googlegroups.com
Thanks Daniel,
material theme works ok for me at the moment.

Marco


On Saturday, January 31, 2015 at 8:15:04 PM UTC+1, Daniel LaLiberte wrote:
Marco,

Not all the old options work in the new charts yet.  If you want the new style with the old charts, you can try the 'theme': 'material' option.
On Sat, Jan 31, 2015 at 6:24 AM, Marco Natalini <natalin...@gmail.com> wrote:
Hello
I'm trying to use new Material Chart version by loading version 1.1 of the library.
I've set various kinds of options, like curveType animation and focusTarget, but they don't works.

This is my option object:

var options = {
                  title: "my title",
                  legend: { position: 'bottom' },
                  width: "100%",
                  focusTarget: 'category',
                  curveType: 'function',
                  smoothingFactor: 0.8,
                  chartArea: {width: '90%', height: '80%'},
                  animation:{duration:1000, easing: 'out'}
};
Then I convert options with convertOptions method like this:
chart.draw(data, google.charts.Line.convertOptions(options));

maybe I forgot something?

Thanks for help.

Marco

--
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.

To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/d/optout.



--
dlali...@Google.com   5CC, Cambridge MA
daniel.l...@GMail.com 9 Juniper Ridge Road, Acton MA

James Gifford

unread,
Apr 26, 2016, 7:53:31 PM4/26/16
to Google Visualization API
The lineWidth and pointSize options still don't seem to be working for the Material line chart. I'm following the documentation and other options are working fine, but these still seem to do nothing for the Material chart.

Is development still happening with Google Charts?

- James
Reply all
Reply to author
Forward
0 new messages