Feature Request: Grafana-like Stat Panel Component #197
Replies: 3 comments 2 replies
-
Thanks for the request, this looks interesting. It seems to me that this type of higher level component can already be built with the current set of components available (VueUiKpi, with VueUiSparkline in a slot, for example, can be a building block for a grid item). Having that kind of component ready to use is nice, though. I've been thinking of a section of the docs website (or an entirely separate website) where components like the one you propose could be showcased. For now it's limited to this section of the docs website, and it does feel a bit lost in there. I'm currently adding final touches to a new world map component, after which I'll have the bandwidth to think about all this. Cheers, and thanks for the inspiration ! |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Yes, this seems like a simple and extensible solution. Being able to pass markRaw(MyCustomComponent) through the dataset would allow us to use custom visualizations or business-specific components inside VueUiDashboard. I’d be happy to test it once the feature is implemented. Thank you for considering it. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
A new StatPanel component, similar to Grafana’s stat visualization, to display summary data in a visually partitioned grid layout.
Use Case & Motivation:
In enterprise dashboards, especially in monitoring, alerting, or KPI-driven environments, it is critical to quickly visualize numeric/statistical values like totals, percentages, or statuses. We propose a Vue Data UI component that:
• Dynamically renders square (or rectangular) cells for each value in a given dataset.
• Distributes values evenly across the grid, regardless of row count.
• Supports thresholds and coloring, optionally reacting to value ranges (e.g. green for healthy, red for critical).
• Mimics the stat panel of Grafana, but with full customization through Vue slots and props.
Optional Enhancements
• Animations when values change (e.g. smooth transition, highlight flash).
• Custom label slots per value.
• Responsive layout that auto-fits to container width/height.
• Compact/Expanded view modes for embedding in tight panels.
https://grafana.com/docs/grafana/latest/panels-visualizations/visualizations/stat/
Thanks for your great work on Vue Data UI
Beta Was this translation helpful? Give feedback.
All reactions