Horizontal error bars

65 views
Skip to first unread message

Ian

unread,
Jul 26, 2011, 3:17:54 PM7/26/11
to Google Chart API
I've created a horizontal bar chart that I'd like to add error bars
to. According to the documentation error bars are only available for
vertical charts. What is the best approach to drawing error bars
horizontally?

I started with a line marker, but it extends left into the bar and I
only want the error bar to draw from the end of the bar to the right
of it. Thanks.

KeithB

unread,
Jul 27, 2011, 9:07:10 AM7/27/11
to google-c...@googlegroups.com
The vertical/horizontal line marker has enough display options to support what you need, I believe.


In the above example, I've used a line marker three different ways; you'll want to review the options and pick the one that works the best for you. Keep in mind that you can also use hidden data series for placement.

"V,990066,0,0,5:20,-1" - line marker is 20 pixels long, but the -1 draws it below the bar so only 10 pixels are shown

"V,990066,0,1,5:20,1" - line marker is 20 pixels long and showing atop the bar (not what you want)

"V,990066,0,2,5:20,1,:10" - line marker is 20 pixels long and given a 10 pixel offset

Cheers,
Keith

Raúl Escamilla

unread,
Feb 27, 2017, 11:16:13 AM2/27/17
to Google Chart API, kborn...@gmail.com
Your link is not working any more :(
Reply all
Reply to author
Forward
0 new messages