Superior Plotly with Code Sequence (Half 7): Cropping the y-axis in Bar Charts | by Jose Parreño | Jan, 2025

Is there ever a very good motive for beginning a bar chart above zero?

Picture generated with Dall-e

Welcome to the seventh publish in my “Plotly with code” collection! Should you missed the primary one, you may test it out within the hyperlink under, or flick through my “one publish to rule all of them” to observe together with your complete collection or different matters I’ve beforehand written about.

A brief abstract on why I’m scripting this collection

My go-to instrument for creating visualisations is Plotly. It’s extremely intuitive, from layering traces to including interactivity. Nevertheless, while Plotly excels at performance, it doesn’t include a “information journalism” template that gives polished charts proper out of the field.

That’s the place this collection is available in — I’ll be sharing the best way to remodel Plotly’s charts into modern, professional-grade charts that meet information journalism requirements.

PS: All pictures are authored on my own except in any other case specified.