From: Dominik Csapak <d.csapak@proxmox.com>
To: yew-devel@lists.proxmox.com
Subject: [PATCH yew-widget-toolkit/yew-widget-toolkit-assets 0/3] implement pie chart widget
Date: Wed, 8 Apr 2026 12:48:42 +0200 [thread overview]
Message-ID: <20260408104850.1592300-1-d.csapak@proxmox.com> (raw)
Implements 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)
changes from rfc:
* solve the legend colors with css variables instead of a new button property
yew-widget-toolkit-assets:
Dominik Csapak (1):
add helper class for pie chart
scss/_charts.scss | 10 ++++++++++
scss/_theme_post.scss | 1 +
2 files changed, 11 insertions(+)
create mode 100644 scss/_charts.scss
yew-widget-toolkit:
Dominik Csapak (2):
macros: widget: impl WidgetStyleBuilder for svgs
add pie chart widget
pwt-macros/src/widget.rs | 25 +-
src/widget/charts/mod.rs | 4 +
src/widget/charts/pie.rs | 552 +++++++++++++++++++++++++++++++++++++++
src/widget/mod.rs | 2 +
4 files changed, 572 insertions(+), 11 deletions(-)
create mode 100644 src/widget/charts/mod.rs
create mode 100644 src/widget/charts/pie.rs
Summary over all repositories:
6 files changed, 583 insertions(+), 11 deletions(-)
--
Generated by git-murpp 0.8.1
next reply other threads:[~2026-04-08 10:48 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-08 10:48 Dominik Csapak [this message]
2026-04-08 10:48 ` [PATCH yew-widget-toolkit-assets 1/1] add helper class for pie chart Dominik Csapak
2026-04-08 10:48 ` [PATCH yew-widget-toolkit 1/2] macros: widget: impl WidgetStyleBuilder for svgs Dominik Csapak
2026-04-08 10:48 ` [PATCH yew-widget-toolkit 2/2] add pie chart widget Dominik Csapak
2026-04-09 11:39 ` applied: [PATCH yew-widget-toolkit/yew-widget-toolkit-assets 0/3] implement " Dietmar Maurer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260408104850.1592300-1-d.csapak@proxmox.com \
--to=d.csapak@proxmox.com \
--cc=yew-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox