Return the pixel coordinate of the given value over axis.
var chart = new CanvasJS.Chart("container", { . . axisX: { title: "axisX Title" }, . . }); chart.render(); console.log(chart.axisX[0].convertValueToPixel(20));
Also See: