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

#15693

Emeric
Member

Hello,

Interval isn’t what I need.
Here a representation about step/pitch/interval between points:

Is it possible to change this value ? At this moment this value is defined automatically based on the number of data: more you have points, less this value is important.
In my example we can consider the step is 50px (for example), if I add data, this step will change and will be less than 50px. I would like to control this step in order to say to the chart “whatever the number of data the step will be the same”. Is it possible ?
I know maximum exists (https://canvasjs.com/docs/charts/chart-options/axisx/maximum/) it will fix the step by locking the axis, but it’s not exactly what I’m looking for !

Second question:
When you define the width of the chart like that:
<div id="chartContainer" style="height: 400px; width: 800px;"></div>
800px will be the width of everything and not only the points.
Representation:

Thank you for your help !

  • This reply was modified 3 weeks, 3 days ago by  Emeric.