我在找jquery flot
。我想隐藏标签x-axis
但我想保留vertical axis
。隐藏标签x轴,但仍然保持垂直轴jquery flot
这里我演示代码: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"
}
更新:遵循占星的答案。它也起作用。
我们只是更新css
。
.tickLabels .xAxis {
color:transparent !important;
}
查找labelHeight和labelWidth文档中,如果将这些零它不应该出现。 – Peter
感谢您的回复,我更新了您的建议,但仍然出现。 –