Home forums Using CanvasJS Define the pitch/step of the chart Reply To: Define the pitch/step of the chart

#15713

Bivek Singh
Moderator

@emeric,

You can achieve the desired width between dataPoint by setting viewportMinimum and viewportMaximum.

For your second query, you can find the pixel co-ordinates of first and last dataPoint using convertValueToPixel. Please, take a look at this jsFiddle.

—-
Bivek Singh,
Team CanvasJS