Tools / Editor
XY Chart Maker: Bar & Line Charts
Create bar and line charts from categories and numeric series. Set axis labels and bounds, preview the chart and export your diagram.
Match numeric series to categories
Create a bar or line chart from named categories and numeric series. Use bars to compare quantities across categories and lines to emphasize an ordered progression. State the measurement and unit so the reader can interpret the scale without looking at your source data.
A worked example
Diagram source
xychart-beta
title "Monthly activity"
x-axis "Month" ["Jan", "Feb", "Mar"]
y-axis "Projects"
bar [12, 24, 18]
line [10, 18, 25]How to use this tool
- Set the title and axis labels, then enter categories in the order readers should compare them.
- Add a bar or line series with one numeric value for each category. Check the count before previewing.
- Review the y-axis range and orientation. Export only after confirming that the scale supports an honest comparison.
What to check
| Detail | Guidance |
|---|---|
| Series length | Every series must align with the category list. A missing value can shift the apparent meaning of later values. |
| Axis bounds | Leave bounds automatic or set an explicit minimum and maximum. A cropped baseline can exaggerate bar differences. |
| Data meaning | This builder plots the numbers you provide. It does not calculate confidence intervals or establish a trend from a small sample. |
Common questions
Should I choose a line or a bar?
Use a line when the order and connection between observations are meaningful, such as consecutive months. Use bars when comparing distinct categories. Avoid connecting unrelated category names merely because a line looks smoother.