How can I draw dotted line using chartjs?

后端 未结 3 1974
囚心锁ツ
囚心锁ツ 2021-02-15 00:50

I would like to draw dotted line using chartjs. I did not see any options in creating dotted lines. I feel we need to extend the chartjs to support this. Can some one help me in

3条回答
  •  花落未央
    2021-02-15 01:12

    In Chart.js 2.1+, use the borderDash option within your dataset. It takes an array of two numbers. See this codepen

提交回复
热议问题