Home Forums Chart Support Custom Label on Xaxis Reply To: Custom Label on Xaxis



Please find the updated JS Fiddle accordingly.


I must insert Striplines on the position of X-values fetched from st array , they are not hard-coded suggested for Chart division.
Please find the code snippet below:
var st=[]
var chart = new CanvasJS.Chart(“chartContainer”,{
axisX: {
labelAngle: -90,
stripLines: [{
value: st[0],showOnTop: true,
}, {
value:st[1], showOnTop: true,
} , … and so on… ,{value: st[n]}

Please suggest me.