javascript - 隐藏标签 x 轴但仍保留垂直轴 jquery flot

标签 javascript jquery graph charts flot

我正在查找jquery flot。我想隐藏标签x-axis,但我想保留垂直轴

这是我的演示代码:my demo

这是我所期望的图片(删除所有标签x-axis)。 enter image description here

希望大家能够帮助我。非常感谢。

更新:

我将代码更新为 labelWidthlabelHeight,但它仍然出现。

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; 
}

最佳答案

添加到 .css 文件:

.tickLabels .xAxis { 
  color:transparent !important; 
}

jsFiddle

关于javascript - 隐藏标签 x 轴但仍保留垂直轴 jquery flot,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35692316/

相关文章:

javascript - jQuery:单击时,阻止 mouseenter 事件

javascript - 删除对象或设置为 null

javascript - 通过 orderbars.js 和类别将 Flot 与多个条形结合使用

graph - 如何检查边缘是否在某个循环中?

javascript - tinymce getcontent 获取未应用过滤器的完整 html

javascript - 将命令的响应传输到 Node

javascript - 使用 Jquery 启用/禁用多个下拉列表?

javascript - React - 如何根据状态(状态变化)调节函数的执行?

javascript - 取消所有排队的 jQuery SlideUp 和 SlideDown 动画

algorithm - 没有炸弹的最小路径