[英]Hide label x-axis but still keep vertical axis jquery flot
I'm finding about jquery flot
. 我正在寻找有关jquery flot
。 And i want to hide label x-axis
but i want to keep vertical axis
. 我想隐藏标签的x-axis
但我想保持vertical axis
。
Here my demo code: my demo 这是我的演示代码: 我的演示
Here my picture what i expected (remove all lable x-axis
). 在这里,我的照片是我所期望的(删除所有标签x-axis
)。
Hope everybody can help me. 希望大家能帮助我。 Thank you very much. 非常感谢你。
Update : 更新 :
I updated my code as labelWidth
and labelHeight
, but it it still appear. 我将代码更新为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"
}
Update : Follow as Stargazer's answer. 更新 :按照观星者的答案。 It worked as well. 它也很好。
We just update css
. 我们只是更新css
。
.tickLabels .xAxis {
color:transparent !important;
}
I don't know about previous versions but v3.0.0 this works: 我不知道以前的版本,但是v3.0.0可以正常工作:
xaxis: {
showTickLabels: 'none'
}
Check the source code of this expample https://www.flotcharts.org/flot/examples/axes-labels/index.html 检查此示例的源代码https://www.flotcharts.org/flot/examples/axes-labels/index.html
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.