Google Charts LineChart Custom Points

后端 未结 3 1980
悲哀的现实
悲哀的现实 2021-01-25 02:00

Is it possible to add a custom point shape to a line chart?

Google\'s Customizing Points Documentation doesn\'t mention anything about adding shapes the

3条回答
  •  借酒劲吻你
    2021-01-25 02:55

    Dr. Molle's answer seemed to work for getting a hollow circle, although the point doesn't match the legend.

    I figured out a workaround for an X shapped point. I used options.pointshape to give a star 4 sides, rotated it by 45 degrees and decreased the dent:

    pointShape: { 
       type: 'star',
       sides: 4,
       dent: 0.1,
       rotation: 45,
    },
    

    Hopefully there is a better way, but Dr. Molle's and this answer work for now.

提交回复
热议问题