Match legend order to visual data order
Back to the Chart galleryxpd charts
Which stock finished highest and which finished lowest over 2018?
Plotly Express Stocks dataset, first 53 weekly observations for four tech stocks.
“If there is a visual ordering in your data, make sure to match it in the legend”
Before
Interactive chart unavailable.
After
Interactive chart unavailable.
Values
At year end Amazon stands near 1.24, Microsoft near 1.15, Apple near 0.85, and Facebook near 0.72.