Floating Bar Graph(Max/Min)

889 views
Skip to first unread message

kallu

unread,
Apr 28, 2011, 12:54:39 PM4/28/11
to Google Chart API
I have a requirement of a bar graph. There are five questions and for
each question , there are 3 values, a higher value, a lower value. For
each question, the bar should extend from the lower value to higher
value and a marker should be placed at the average value. You can see
the screenshot of the graph needed in
http://stackoverflow.com/questions/5800490/floating-columnmax-min-graph-in-ror

I started looking at the Google charts and found it very useful but I
am not sure whether this requirement can be done with the google
charts. Can anyone help?

KeithB

unread,
Apr 28, 2011, 3:34:02 PM4/28/11
to google-c...@googlegroups.com
Hi,

Bar charts with floating bars are a bit tricky, but your chart can definitely be built. The following should get you started:

Start with a normal bar chart with two data series: first is the bottom of your bar, second is the top:

Hide the first series so it "floats" (see CHCO alpha value)

Add a third data series to position your new marker: (see CHD and CHM)

Cheers,
Keith


kallu

unread,
Apr 28, 2011, 9:40:47 PM4/28/11
to Google Chart API
Many thanks Keith. That was awesome. Just what I needed. Google charts
rocks. Thanks once again!!

On Apr 29, 12:34 am, KeithB <kbornho...@gmail.com> wrote:
> Hi,
>
> Bar charts with floating bars are a bit tricky, but your chart can
> definitely be built. The following should get you started:
>
> Start with a normal bar chart with two data series: first is the bottom of
> your bar, second is the top:http://goo.gl/fr0Jx
>
> Hide the first series so it "floats" (see CHCO alpha value)http://goo.gl/AwS8q

PFM

unread,
Nov 19, 2013, 3:14:31 AM11/19/13
to google-c...@googlegroups.com, kborn...@gmail.com
KeithB,
 
Can you explain what you mean by CHCO alpha value and CHD and CHM ?
 
I'd really like to be able to do this (Floating Bars).
 
Thanks
PF
Reply all
Reply to author
Forward
0 new messages