Widgets
Pie Chart Widget
Learn how to use the Pie Chart Widget in OpenLIT to display proportions and segment distributions using ClickHouse data.
The Pie Chart Widget in OpenLIT is perfect for showing how values are distributed across categories. Use it to represent proportions such as traffic sources, user roles, or error types.
📌 Use Cases
- Visualize category breakdowns
- Show relative proportions of segments (e.g. users by role)
- Highlight top contributors to a total value
- Display simple summaries at a glance
🛠️ How to Add a Pie Chart
Example:
⚙️ Configuration Options
- Customize colors
- Add paths for labels & values
Use dynamic bindings like {{filter.timeLimit.start}}
, {{filter.timeLimit.end}}
to make your chart respond to dashboard time filters.
✅ Best Practices
- Aggregate less-important categories into an “Other” group in SQL
- Use percent labels for quick at-a-glance insights
- Match colors with your product or brand theme for consistency