techniq / layerchart

Composable Svelte chart components to build a wide range of visualizations
https://www.layerchart.com
MIT License
668 stars 12 forks source link

[PieChart] Add `placement` prop #271

Closed techniq closed 4 weeks ago

techniq commented 1 month ago

While you can use:

<PieChart center={false} props={{ group: { x: ..., y: ... }}>

(example) or use padding to shift the center (example), it would be helpful to add...

<PieChart placement="left|center|right">

to easily position to the right (which requires knowing the width & height), especially responsively, as well as simplify the left alignment