Search code examples
javascriptchartsplotjqplot

vertical line chart (time series) in jqplot


I'm trying to plot a time-series in a vertical line chart, something like this:

[EDIT The link is now a demos in the download archive which is available here:

https://www.rgraph.net/download.html#stable

And the demo is called demos/scatter-vertical-line.html ]

The reason is simple: mobile phones have a "vertical" aspect ratio, so a x-based chart is not as effective.

Is there any way I can do it with jqplot? I tried the "rotate" property in css, but it's not available in Opera Mini so I can't use it...


Solution

  • Adding this should do it :

    seriesDefaults: {rendererOptions: {barDirection: 'horizontal'}}.