我正在查找jquery flot
。我想隐藏标签x-axis
,但我想保留垂直轴
。
这是我的演示代码:my demo
希望大家能够帮助我。非常感谢。
更新:
我将代码更新为 labelWidth
和 labelHeight
,但它仍然出现。
xaxis: {
mode: "time",
timezone: "browser",
ticks: 6,
labelWidth: 0,
labelHeight: 0,
ticks: [
now_hour,
now_hour + 3600000*1,
now_hour + 3600000*2,
now_hour + 3600000*3,
now_hour + 3600000*4,
now_hour + 3600000*5,
now_hour + 3600000*6
],
timeformat: "%H:%M"
}
更新:按照 Stargazer 的回答进行操作。它也有效。
我们刚刚更新了 css
。
.tickLabels .xAxis {
color:transparent !important;
}
最佳答案
关于javascript - 隐藏标签 x 轴但仍保留垂直轴 jquery flot,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35692316/