【问题标题】:DOJO Charts : Adding intermediate labels in the y- axis for each chart.addSeries()DOJO Charts : 在每个chart.addSeries() 的y 轴上添加中间标签
【发布时间】:2015-02-23 15:01:44
【问题描述】:

我添加了 2 个 chart.addSeries() 和它的到来,但我需要标签也应该显示

      chart.addPlot("default", {
    type: "Lines",
    labels: true,
   markers: true  ,
    htmlLabels: true
   });
   // Add X axis
   chart.addAxis("x",{ labels:[{"value":1,"text":"0M"},{"value":1.5,"text":"15M"},{"value":2,"text":"2mmM"},{"value":3,"text":"4M"},{"value":4,"text":"6M"},{"value":5,"text":"8M"},{"value":6,"text":"10M"},{"value":7,"text":"12M"}]});
   // Add Y axis
   chart.addAxis("y", { min: 50, max: 200, vertical: true, fixLower: "major", fixUpper: "major" });
   ADDING SERIES - HERE I WANT THE LABEL ALSO DISPALYED FOR THESE 2 SERIES 
   chart.addSeries("Series A", [110, 110, 110, 110, 110, 110, 110], {plot: "other", stroke: {color: "blue", width: 1.5, style:"ShortDash"},outline: null })
   chart.addSeries("Series B", [130, 130, 130, 130, 130, 130, 130], {plot: "other",stroke: {color: "blue", width: 1.5, style:"ShortDash"},outline: null })
   --------------------

【问题讨论】:

    标签: graph charts dojo axis-labels


    【解决方案1】:

    你的两个系列都使用了一些名为“其他”的情节,但我没有看到它在你的 sn-p 上定义。 尝试将您定义的绘图重命名为“其他”。另外我相信你必须设置 labelStyle 属性。

    【讨论】:

      猜你喜欢
      • 2012-04-26
      • 2013-01-23
      • 2011-06-03
      • 2019-09-20
      • 1970-01-01
      • 2017-03-28
      • 2015-05-27
      • 1970-01-01
      • 2018-10-31
      相关资源
      最近更新 更多