Draw Fixed Straight Horizontal Line on a Chart in Scattered Chart

12,701 views
Skip to first unread message

RAO

unread,
Sep 5, 2011, 11:50:26 AM9/5/11
to Google Visualization API
In visualization chart I need to draw a fixed horizontal line in chart
that should represent a threshold for satisfactory score. This needs
to be done in both Scattered and Line chart. Is it possible and would
someone please help me in this regard.

Thanks.
Rao

Erez Bixon

unread,
Sep 6, 2011, 5:34:19 AM9/6/11
to google-visua...@googlegroups.com
Hi Rao,
There's no standard support for such lines. 
However, you can create an additional series and force it into looking like a fixed horizontal line.
It will work both in Scattered and Line charts.

Hope this helps,
EZChart



--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
To post to this group, send email to google-visua...@googlegroups.com.
To unsubscribe from this group, send email to google-visualizati...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.


Karl Guillotte

unread,
Feb 29, 2012, 2:18:48 PM2/29/12
to google-visua...@googlegroups.com
Hi, 

How it make it happens when the line chart is controlled by a control (ChartRangeFilter) ? I am computing 'x' values at regular interval, but not ideal... 

Thanks for your help
Karl


On Tuesday, September 6, 2011 2:34:19 AM UTC-7, EZChart wrote:
Hi Rao,
There's no standard support for such lines. 
However, you can create an additional series and force it into looking like a fixed horizontal line.
It will work both in Scattered and Line charts.

Hope this helps,
EZChart
On Mon, Sep 5, 2011 at 6:50 PM, RAO <victorio...@gmail.com> wrote:
In visualization chart I need to draw a fixed horizontal line in chart
that should represent a threshold for satisfactory score. This needs
to be done in both Scattered and Line chart. Is it possible and would
someone please help me in this regard.

Thanks.
Rao

--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
To post to this group, send email to google-visualization-api@googlegroups.com.
To unsubscribe from this group, send email to google-visualization-api+unsub...@googlegroups.com.

asgallant

unread,
Mar 1, 2012, 11:46:41 AM3/1/12
to google-visua...@googlegroups.com
Unfortunately, that it the only way to make it work.  The charts do not take data points outside the range of the chart into account when drawing the chart, so you need to add the values in with the same granularity as your data (generally 1 per row in your DataTable).
Reply all
Reply to author
Forward
0 new messages