anvarik
anvarik

Reputation: 6487

Chartjs x axis scaling

Is there a way to pass a dataset to x-axis with ChartJS? Documentation says:

The line chart requires an array of labels for each of the data points. This is show on the X axis.

What I mean is not labels, integers. i.e. (1,y) (11,y) should be away from each other 10 units.

Upvotes: 4

Views: 1706

Answers (1)

Sabba
Sabba

Reputation: 257

Try to use Chart.Scatter plugin. It allows to specify X-axis scale

Upvotes: 0

Related Questions