Sets the point where the stripLine has to be plotted or drawn along the axis X.
Default: nullvar chart = new CanvasJS.Chart("container",
{
.
.
axisX:{
stripLines: [{
.
value:12,
.
}]
},
.
.
});
chart.render();
Also See:
7 Comments
How can i put more values?
Eg. 3 vertical and 2 horizontal striplines…
I solved! axisX:{
stripLines:[
{
value:1940
},
{
value:1980
}
Now i want to put some tags inside the chart, someone help?
Here is an example to show stripline-label inside chart.
Thiago,
We released v1.8.1 Beta with labelPlacement feature which will allow you to do the same using the api directly.
Is there a possible way of changing the strip height so that it only reaches the data point?
I’m going for something like this: http://peltiertech.com/Excel/pix5/dlgDropLines.png
Its not possible to set height for stripLine. But you can use one extra dataSeries of column type with dataPointWidth set to 1 to achieve this. Here is an example.
Thanks,
1 step closer to solving my problems.
Can anyone help me incorporating: http://jsfiddle.net/canvasjs/euhv6a94/
With this plugin: https://github.com/schme16/Chart.js-RangeSlider
Making 2 charts was my first solution, but I’ve been stuck and looking for alternatives.