我在找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
感謝您的回覆,我更新了您的建議,但仍然出現。 –