Y Category Line
Categorical values on the y-axis with continuous x-axis, creating horizontal progression charts. Useful for scientific profiles, depth measurements, and ordinal data series.
Line Chart Types/Scales & Axes/Y Category Line
Categorical values on the y-axis with continuous x-axis, creating horizontal progression charts. Useful for scientific profiles, depth measurements, and ordinal data series.
Y-category line charts place categorical values on the vertical axis instead of numeric values. The x-axis typically remains continuous (time, distance, temperature), while the y-axis shows discrete categories or labels. This example demonstrates atmospheric temperature variation with altitude.
x,y
15,0
-50,1
-56.5,2
-46.5,3
-22.1,4
-2.5,5
-27.7,6
-55.7,7
-76.5,8
Should I use smooth or step transitions? For atmospheric data showing continuous variation, use smooth curves. This accurately represents the gradual temperature changes between altitude levels.
How to order categories? Use natural ordering from lowest to highest altitude (or depth). Ensure categories progress logically to show the vertical profile.
Can I have numeric-like categories? Yes, altitude values like "0", "10", "20" km work well as categories when you want even spacing regardless of the actual measurements at each level.
When should I use Y-category instead of numeric Y-axis? Choose Y-category when you want equal visual spacing between levels, regardless of their actual numeric intervals. For example, ocean depths at 0m, 10m, 50m, 200m, 1000m benefit from category axis to give each level equal prominence.
How do Y-category charts differ from regular line charts? In Y-category charts, the vertical axis represents discrete categories with equal spacing, while the horizontal axis shows continuous numeric values. This is opposite to typical line charts where X is often categorical (like time) and Y is numeric.