Trendlines in Material Scatter Chart

90 views
Skip to first unread message

Pratik Mandrekar

unread,
Sep 24, 2015, 2:16:00 PM9/24/15
to Google Visualization API
Hey,

I'm trying to plot a Scatter Chart with date on the X-axis and two numeric data points on the dual Y-axis. I also want to show a trendline for each of the series but I'm unable to get the trendline to show up. Is there a different way to specify the trendline then what is available in the documentation?

Here is my sample code - https://jsfiddle.net/ratpik/8uwosegp/

Thanks,
Pratik

Sergey Grabkovsky

unread,
Sep 24, 2015, 2:50:32 PM9/24/15
to Google Visualization API
Hi Pratik,

Unfortunately, trendlines are not yet supported in Material Charts. You'll have to use a Classic Chart in order to use them.

--
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/a4956d06-0ba1-4756-8b52-b42ee4e2a2c9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Pratik Mandrekar

unread,
Sep 24, 2015, 2:53:12 PM9/24/15
to google-visua...@googlegroups.com
Thanks! Yeah I'm able to plot trend lines in Classic Charts.

Also is there be any way to highlight a region in the background of a scatter plot i.e for highlight area between y1 and y2 on each of the Y-axes?

--
You received this message because you are subscribed to a topic in the Google Groups "Google Visualization API" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-visualization-api/BHesewXgvYw/unsubscribe.
To unsubscribe from this group and all its topics, 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.

Sergey Grabkovsky

unread,
Sep 24, 2015, 2:54:28 PM9/24/15
to google-visua...@googlegroups.com
It's a bit hacky, but you can accomplish this in Classic Charts by using a ComboChart with an area series.

Reply all
Reply to author
Forward
0 new messages