Use a line plot when you need to track how your data changes over time or across a sequence. It is the ideal tool for spotting trends, identifying peaks or valleys in your metrics, and comparing multiple groups to see how they perform side-by-side in a single view.
Tracking Changes Over Time
A line plot is best suited for continuous data where the order of your X-axis points matters. Whether you are plotting monthly revenue, hourly server performance, or annual growth, this tool connects your data points to emphasize the direction and speed of change.
When your data contains timestamps, Lattice automatically organizes the X-axis chronologically. This removes the manual effort of sorting your dataset before visualization, ensuring your trends are accurate and easy to read.
Comparing Multiple Groups
If you need to analyze how different categories perform relative to one another, use the grouping feature. By assigning a group column, the tool draws separate lines for each segment, allowing you to quickly spot which group is outperforming others or if they follow similar patterns over the same period.
Each group is clearly distinguished with its own color, keeping the visual layout clean even when you are managing complex datasets with multiple series.
Visualizing Confidence Intervals
When your dataset includes repeated measurements for the same point in time, showing a single average line might hide underlying variability. You can choose to include confidence intervals, which add a shaded band around your line.
This band represents the calculated range of expected values, giving you a clearer picture of data consistency. If your data points are sparse, the tool intelligently handles these gaps to maintain the integrity of your visual report.
Streamlined Visual Analysis
Lattice prioritizes clarity and precision. By focusing on the essential structure of your data, the line plot tool helps you avoid common pitfalls like misordered time series or cluttered charts, providing a clean output that is ready for interpretation.
Because this tool is built for data-driven insights, it handles missing values gracefully and maintains your data's integrity throughout the entire process, so you can trust the trends you see.
1 · Intent → method
An LLM picks plot_line from a fixed catalog.
2 · Method → numbers
Deterministic Python engine runs the math. Same input → same output.
3 · Numbers → plain language
A second LLM translates the result into your domain’s vocabulary.
Can I show uncertainty in my line plot?
Yes. By enabling the confidence interval option, the tool automatically calculates the 95% range based on your data distribution at each point, helping you visualize the reliability of your trend.
How does the tool handle dates on the X-axis?
The line plot automatically detects date and time formats. It converts them into a standard time scale, ensuring that your data points are spaced correctly according to their actual time distance.
Tool input schema
Schema for plot_line not exported yet (run pnpm export:registry).