Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

combined line and bar w/ jqplot

Tags:

jqplot

Is it possible w/ jqplot to display a line chart that 'overlays' a bar chart?

I have added a series to a stacked barchart and changed the renderer to $.jqplot.LineRender. This displays as a line but it is getting added to the stacked amounts.

like image 568
jjdebarros Avatar asked May 23 '12 20:05

jjdebarros


2 Answers

Yes it can be done with jqPlot.

A sample showing how a bar chart can be presented on a single plot together with a line chart is presented here, see the 3rd plot from the top.

Here I made a sample to show line and stacked bar charts on a single plot.

like image 100
Boro Avatar answered Sep 29 '22 17:09

Boro


I add this example on jsFiddle, i hope this could be useful to you. It also shows the possibility to draw delimiting lines and areas for a better representation.

enter image description here

there is an article about this topic at this page: http://www.meccanismocomplesso.org/en/mean-mode-median-barchart/

.
like image 27
meccanismo.complesso Avatar answered Sep 29 '22 15:09

meccanismo.complesso