Overlaying plot types and/or error bars

143 views
Skip to first unread message

Alex Gutteridge

unread,
Jun 25, 2012, 4:40:16 AM6/25/12
to jqplot...@googlegroups.com
I'm trying to implement a plot (bar and line) that includes y-axis error bars. From the docs all I can see is support for error bands which aren't really appropriate for non-sequential data I am plotting. I have hacked the OHLC renderer to give a kind of error bar (I set the open and close values to my data value and the high/low values to that +/- the error), but what I want to do now is overlay the OHLC series on top of either the barchart or line chart.

Is this possible with jqplot? Or is there a better way to get error bars onto a bar/line plot?

Andrej Vasilj

unread,
Jan 15, 2013, 9:48:31 PM1/15/13
to jqplot...@googlegroups.com
Hey Alex,

I just started using jqplot and have run into the need for error bars as well. As I only need bar charts at the moment, I modified the barRenderer code slightly to overlay error bars. I'm not sure if my solution is the optimal one, but it seems to work nicely and I'm sure it can be extended to most of the other chart types as well. Check out the code here:

https://github.com/andrej-vasilj/jqplot.barRenderer

Just replace the original version of barRenderer with my version from gitHub and you'll be on your way.

Cheers

Alex Gutteridge

unread,
Jan 16, 2013, 2:59:34 AM1/16/13
to jqplot...@googlegroups.com
Thanks Andrej - I will check it out.
Reply all
Reply to author
Forward
0 new messages