【问题标题】:jqplot: width, height, label position, min&max valuejqplot:宽度、高度、标签位置、最小值和最大值
【发布时间】:2012-12-30 13:26:15
【问题描述】:

我是 jqPlot 的新手,我目前正在使用它来生成图表 所以我需要你帮助解决以下一些问题

  1. 我想做这样的图表http://picturepush.com/public/11972209 但我不想显示 X 轴的最小值和最大值(最小值 = 99,最大值 = 106)。 (没有其他变化!)

  2. 如何修复图表“矩形”的 *W*idth 和 *H*eigh? (独立与标签刻度、轴标签、图例...)

  3. 如何设置xaxis、yaxis标签的位置?

非常感谢

【问题讨论】:

    标签: jqplot


    【解决方案1】:

    关于您的问题:

    1. 您可以使用ticks 选项设置您想要的刻度:http://www.jqplot.com/docs/files/jqplot-core-js.html#Axis.ticks
    2. 这是我几个月前提出的一个相关问题:JqPlot : Set a fix height value for the graph area not including y axe labels
    3. 你应该看看这里:http://www.jqplot.com/docs/files/jqplot-axisTickRenderer-js.html#

    【讨论】:

    • 1.我准备好使用刻度,但刻度 [0] 始终与 y 轴对齐。 Idem ticks[ticks.length-1] 2. 我确实看到了你的问题,但对我来说似乎是 KO。但我会再试一次 3. 不是位置选项谢谢
    猜你喜欢
    • 2016-08-03
    • 1970-01-01
    • 1970-01-01
    • 2013-09-23
    • 2016-03-30
    • 2016-11-13
    • 1970-01-01
    • 2018-11-08
    • 2017-12-08
    相关资源
    最近更新 更多