浮动相同范围的刻度
您好,我想添加不在固定范围内的刻度。 即我的刻度将为 1,2,3,3,3,3,4,5 我如何告诉图形类型的数据集根据刻度数而不是固定范围来绘制点。
Hi i want to add ticks that are not in a fixed range. i.e my ticks will be 1,2,3,3,3,3,4,5 how would i tell a data set for the graph type to plot points based on the tick number, instead of a fixed range.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我发现了,我所做的是在我的刻度中设置一个递增范围从 0,1,n(+1) 的数组,并将其标签设置为我想要的任何内容 @0 = '27', @1 = '56 ', @2 = '67' ...等等,对于 x 轴点上的数据集,我根据增量范围填写了它。
I figured it out, what i did was in my ticks I set an array with an incrementing range from 0,1,n(+1) and set its label to whatever I want @0 = '27', @1 = '56', @2 = '67' ...etc and for my data sets on the x-axis point I filled it out based on my incrementing range.