Keep data markers clear of the axis frame
Back to the Chart galleryxpd charts
Are the extreme minimum and maximum flowers clearly visible or clipped by the axis lines?
Plotly Express Iris dataset, 50 Iris setosa observations.
“Do not let the data rectangle coincide with the scale-line rectangle, and inset the data slightly inside the frame”
Also covered in Cleveland 1994 (2.2 Visual Clarity, p. 31), Few 2012 (9 GENERAL GRAPH DESIGN, p. 193).
Before
Interactive chart unavailable.
After
Interactive chart unavailable.
Values
Setosa sepals span 4.3 to 5.8 cm in length and 2.3 to 4.4 cm in width.
All 50 setosa observations, including the smallest at (4.5, 2.3) cm and largest at (5.7, 4.4) cm, appear whole.
| Measurement | Min (cm) | Max (cm) | Count |
|---|---|---|---|
| Sepal length | 4.3 | 5.8 | 50 |
| Sepal width | 2.3 | 4.4 | 50 |