【发布时间】:2016-02-29 05:05:21
【问题描述】:
我正在寻找jquery flot。我想隐藏标签x-axis,但我想保留vertical 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;
}
【问题讨论】:
-
查看 labelHeight 和 labelWidth 的文档,如果将它们设置为零,则它不应该出现。
-
感谢您的回复,我根据您的建议进行了更新,但它仍然出现。
标签: javascript jquery graph charts flot