简体   繁体   English

Chartjs x轴缩放

[英]Chartjs x axis scaling

Is there a way to pass a dataset to x-axis with ChartJS ? 有没有办法使用ChartJS将数据集传递到x轴? 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. 我的意思不是标签,整数。 ie (1,y) (11,y) should be away from each other 10 units. 即(1,y)(11,y)应相互远离10个单位。

Try to use Chart.Scatter plugin. 尝试使用Chart.Scatter插件。 It allows to specify X-axis scale 它允许指定X轴刻度

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM