Vertical span bands with jqplot - jqplot

I'd like to add vertical span areas on a jqplot by defining for each one the x axis range. Is there an easy and straightforward way to do this ?
I tried setting an overlay with x value set as the centre of the vertical area I want to cover and the linewidth set as the whole x range for the vertical band. The issue is that the linewidth value is encoded in pixel and not in units of xAxis.
Any help will be greatly appreciated.

Please see canvasOverlay on jqplot documentation here and some examples here
You must be able - thanks to them - to display what you need

Related

add graph lines behind d3 area chart

I am trying to add graph lines (horizontal and vertical) to a area chart.
I would like my graph
enter image description here
to look like this
enter image description here
I have attempted to follow this example https://github.com/d3/d3-axis but it only adds the dotted lines too the left of the axis and I cannot understand why
I have created a stack blitz for anyone who cares to help:
https://stackblitz.com/edit/angular-ivy-dbhrnm?file=src%2Fapp%2FstackedArea-chart-visualization%2FstackedArea-chart-visualization.component.ts,src%2Fapp%2FstackedArea-chart-visualization%2FstackedArea-chart-visualization.component.html
The best I found was to increase the ticksize to make them grids. So for example on your X Axis you can do something like this
.call(d3.axisBottom(x)
.tickSize(-height)

ChartJS - x axis labels orientation

Is it possible to change x-axis label orientation like marked area on the screenshot? I was trying rotate labels with afterCalculateTickRotation but they weren't flipped. Mirror option doesn't work also.
Example code
I managed to do what you are asking for but it's not beautiful because chart.js lacks support to do it properly. So I solved it with some hard coded padding.
https://codesandbox.io/s/vue-template-4ygr1
It's the minRotation and maxRotation you should work with. The labels anchoring point should shift when the rotation goes below zero but they don't. Instead they rotate into the chart but this can be avoided with padding.
A side effect of the padding is that the legend placement broke so i put it in the top instead.
Another unwanted behavior is that the text is aligned to the right. There is an open issue about that: https://github.com/chartjs/Chart.js/issues/4193

c3.js timeseries bar chart zoom in

I have a timeseries graph done using c3.js. When I zoom the graph the bars do not change the width and the x axis does not adopt accordingly. Is there anyway I can do that? I have tried making axis.x.tick.fit = false. The zoom in works perfectly then. But the groups of data in the graphs are getting overlapped. Any idea on what to do is welcome. Thankyou

How to draw horizontal stacked area chart by ios-charts

I am using iOS Charts by Daniel Gindi.
I need to draw horizontal stacked area chart (Example). But I cannot find similar charts in examples of the library. I am trying to customise Horizontal Bar Chart like in example. But I cannot to avoid square corners.
How can I draw line instead of bars with squared corners?
Is it possible in this library or I should use another one?
Yes you can.
Use line chart instead ,and set drawFilledEnabled to true.
But the filled area is between line and x axis, so you may need to rotate the chart.

jqPlot Cursor follow series line

I have a line graph using jqPlot with one series and several data points across it and smoothed lines. I'm using the Cursor plugin to show crosshairs and a tooltip to show x and y points.
Is it possible to have the cross hairs follow the line on the series? So the horizontal line would fix to the y position of the line and not following the mouse. I see you can get the x/y position of each data point but not of the lines inbetween points.
Thanks
If you are using the built in smoothing options the smoothed data points are stored at:
plotObj.series[0].renderer._smoothedPlotData
with pixel locations at:
plotObj.series[0].renderer._smoothedData

Resources