entronad / graphic

A grammar of data visualization and Flutter charting library.

Home Page:https://pub.dev/packages/graphic

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

line Chart如何设置线条的头尾部为圆角呢?

BlazingCC opened this issue · comments

线性的Chart,line头尾部分是方形的,请问一下,如何配置可以让线条的头尾显示成圆角呢?
202308171533

需要定制一下,shape现在默认使用的BasicLineShape类,你copy重写一下,按你的需要写一下style:
https://github.com/entronad/graphic/blob/e987cad6b06df8eddb295a439c4f40005412de5e/lib/src/shape/line.dart#L108C27-L108C27
然后用你写的这个shape