Google Charts API: Always show the Data Point Values in Graph

前端 未结 2 466
旧巷少年郎
旧巷少年郎 2020-12-19 07:54

Is it possible to always show the data point values in Line/Bar charts? by default values values are shown only when hovering on the data points as tooltip.

Somethin

相关标签:
2条回答
  • 2020-12-19 08:17

    You can simply use pointSize option which is set to 0 by default.

    pointSize: Diameter of displayed points in pixels. Use zero to hide all points. You can override values for individual series using the series property.

    0 讨论(0)
  • 2020-12-19 08:21

    Yes you can use this:

    data.addColumn({type: 'string', role: 'annotation'});
    
    0 讨论(0)
提交回复
热议问题