[RFC PATCH yew-widget-toolkit 0/3] implement pie chart widget

Dominik Csapak
2026-03-20T16:08:35Z

I'm currently working on adding more dashboard elements to PDM, and I
wanted to add some gauge charts. While doing this, I made it more
generic and it's now a (more or less) fully featured Pie/Donut/Gauge chart.

In PDM we probably won't use it as a pie/donut chart for now, but it
wasn't too hard to implement the remaining features and wanted to get
some comments and opinions on it, so sending it as RFC for now.

(There are some things we could more neatly visualize with a pie/donut
chart if we want to, so I believe it makes sense to have such a widget)

Dominik Csapak (3):
widget: button: add 'icon_style' property
macros: widget: impl WidgetStyleBuilder for svgs
add pie chart widget

pwt-macros/src/widget.rs | 25 +-
src/widget/button.rs | 8 +-
src/widget/charts/mod.rs | 4 +
src/widget/charts/pie.rs | 547 +++++++++++++++++++++++++++++++++++++++
src/widget/mod.rs | 2 +
5 files changed, 574 insertions(+), 12 deletions(-)
create mode 100644 src/widget/charts/mod.rs
create mode 100644 src/widget/charts/pie.rs

--
2.47.3