jqplot:如何不渲染任何x轴标签(jqplot: how to not render any x

编程入门 行业动态 更新时间:2024-10-28 07:33:32
jqplot:如何不渲染任何x轴标签(jqplot: how to not render any x-axis label)

我怎么能这样没有xaxis标签得到渲染,比如

xaxis: { renderer: $.jqplot.CategoryAxisRenderer, ticks: jsonColsObj, labelRenderer: $.jqplot.CanvasAxisLabelRenderer, tickRenderer: $.jqplot.CanvasAxisTickRenderer, tickOptions: { angle: -30, fontFamily: 'Arial', fontSize: '9pt' } },

对于jsonColsObj ,我传入[''] , null和''作为刻度,但它总是显示1为x轴标签,你知道如何解决这个问题吗?

这是一个jsfiddle

我正在使用方法generateStackedBarCharts(data, label, [''], targetDiv); ,第三个参数作为我的x轴标签。

How can I have so that no xaxis label got render, like

xaxis: { renderer: $.jqplot.CategoryAxisRenderer, ticks: jsonColsObj, labelRenderer: $.jqplot.CanvasAxisLabelRenderer, tickRenderer: $.jqplot.CanvasAxisTickRenderer, tickOptions: { angle: -30, fontFamily: 'Arial', fontSize: '9pt' } },

For jsonColsObj, I pass in [''], null and '' for the tick, but it always show 1 for the x-axis label, do you have any idea how to fix this?

Here is a jsfiddle

I'm using the method generateStackedBarCharts(data, label, [''], targetDiv);, with the third parameter as my x-axis label.

最满意答案

您可以使用删除标签

showLabel: false

在TickOptions部分... 这里你更新的jsfiddle和jqPlot选项的文档

You can remove the label by using

showLabel: false

within the TickOptions section ... your updated jsfiddle here and documentation for jqPlot options here

更多推荐

本文发布于:2023-07-17 04:38:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1139218.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:标签   jqplot   render

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!