【问题标题】:jqplot show labels using date axis rendererjqplot 使用日期轴渲染器显示标签
【发布时间】:2011-06-01 08:49:20
【问题描述】:

我正在使用 jqplot 1.0.0b1_r746。我想使用日期轴渲染器显示一些时间段。图表如下:

现在我想将开始日期和结束日期显示为一个时期的标签。我曾尝试使用 pointLables 插件,但没有成功。

【问题讨论】:

    标签: jquery jquery-plugins graph charts jqplot


    【解决方案1】:

    使用点标签标签是正确的方法。标签是每个点的最后一个元素,例如

    var line1=[['2008-06-30',1,'line1'], ['2008-7-30',1,'line1']];
    

    那么你必须使用点标签配置,例如

    pointLabels: {
        show: true
     }
    },
    

    请参阅文档以获取更多信息:http://www.jqplot.com/docs/files/plugins/jqplot-pointLabels-js.html

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-12-31
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-05-26
      • 1970-01-01
      相关资源
      最近更新 更多