【问题标题】:How to display the point value in the line chart stroke of google api area chart? [closed]google api面积图折线图笔划中如何显示点值? [关闭]
【发布时间】:2020-11-24 20:24:20
【问题描述】:

我需要在我的面积图中显示点值。我在折线图中找到了如何做到这一点,但在面积图中没有找到。请有人指出我正确的方向吗?

【问题讨论】:

  • 您可以使用annotation column role'corecharts' 包中的任何图表添加注释,包括AreaChart...
  • 我看到了,但不确定如何为 AreaChart 实现。我的数据如下所示:`["Month","2018","2019","2020"], ["Jan",30.4,24.9,26], ["Feb",30.5,27.6,25.4], [ "Mar",30.7,27.2,26.1], ["Apr",28.7,26.1,24.7], ["May",32.8,25.9,28.6], ["Jun",27.5,27.3,26], ["Jul ",27.9,26.2,27.1], ["八月",27.1,27.1,27], ["九月",27.1,27.1,27], ["十月",28.1,25.2,24.4], ["十一月", 26.5,27.3,26.7], ["Dec",26.9,25.2,0] 我需要所有数据的注释,而不仅仅是一列。
  • 我需要所有数据的注释,而不仅仅是一列。我没有:data.addColumn({type: 'number', role: 'annotation'}); data.addRows([ ['2008', 23, 23]

标签: charts google-visualization area


【解决方案1】:

注释列应跟随应显示的每个系列列,
如下...

["Month", "2018", {type: "string", role: "annotation"}, "2019", {type: "string", role: "annotation"}, "2020", {type: "string', role: "annotation"}],
["Jan", 30.4, "30.4", 24.9, "24.9", 26, "26"], 

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2014-08-30
    • 1970-01-01
    • 2020-07-05
    • 1970-01-01
    • 1970-01-01
    • 2021-02-18
    • 2014-02-28
    • 1970-01-01
    相关资源
    最近更新 更多