Widgets
Line Chart Widget
Learn how to use the Line Chart Widget in OpenLIT to plot precise time series metrics using ClickHouse queries and dynamic bindings.
The Line Chart Widget in OpenLIT helps you visualize changes in your metrics over time with sharp, precise lines. It’s ideal for tracking KPIs like API latency, CPU usage, conversion rate, or funnel performance.
📌 When to Use
Use a Line Chart when you want to:
- Monitor trends over time with a high degree of accuracy
- Display sharp, distinct movements in your data
- Compare multiple metrics on the same time scale
🛠️ How to Add a Line Chart
Example:
⚙️ Customization Options
- **Custom line colors
- X/Y label and value paths
Use dynamic bindings like {{filter.timeLimit.start}}
, {{filter.timeLimit.end}}
to make your chart respond to dashboard time filters.
✅ Best Practices
- Use
GROUP BY
with consistent time buckets (e.g., minute, hour) - Order your results by time to ensure correct rendering