Color in Google's Timeline Chart bars based in the a specific value

后端 未结 7 1692
说谎
说谎 2021-01-02 01:31

I would like to create groups of colors for the bars. The example below is raw. I would like to add a column with a category type, and based on that category I will color th

相关标签:
7条回答
  • 2021-01-02 02:31

    You have to use option:

        timeline: {
            colorByRowLabel: true
        }
    

    From google docs: timeline.colorByRowLabel default value boolean false
    If set to true, colors every bar on the row the same. The default is to use one color per bar label.

    0 讨论(0)
提交回复
热议问题