【发布时间】:2016-06-02 07:38:40
【问题描述】:
我希望 xaxis 上显示的刻度具有 y 轴的值(只应更改值,而不是位置)。下面是 JsFiddle
https://jsfiddle.net/sonal215/337afs1h/1/
我希望在 x 轴刻度标签上显示 10、5(各自的 y 轴值),而不是 1、2 显示在 x 轴上。
我试过调试它,库中有一个类 jqplot-xaxis-tick 用于设置刻度值。
<div class="jqplot-axis jqplot-xaxis" style="position: absolute; width: 180px; height: 18px; left: 0px; bottom: 0px;"><div class="jqplot-xaxis-tick" style="position: absolute; left: 47px;">1</div><div class="jqplot-xaxis-tick" style="position: absolute; left: 127px;">2</div></div>
如果我可以以任何方式更改在库中显示值的逻辑,那么它将起作用。 或者有没有其他方法可以做到。
请帮忙
【问题讨论】:
标签: javascript jqplot