question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Reverse order of legend

See original GitHub issue

When using the vertical stacked bar chart I would like to be able to reverse the order of the legend. In this bar chart example, each bar has values from A to E in ascending order, but the legend shows descending order.

Code Sandbox here image

Describe the solution you’d like To have a boolean property on the legend e.g. reverseLegend, which reverses the order of the legend.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:10 (1 by maintainers)

github_iconTop GitHub Comments

6reactions
zakariaenosiscommented, Oct 19, 2022

The issue still exists for the line charts.

5reactions
serj-progcommented, Aug 26, 2020

Same issue exists in line chart. Is there any updates on it?

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to reverse Excel legend order?
Right-click on the graph · Click on "Select data..." · Use the arrows above the series list. Note : it will move the...
Read more >
Can I Reverse Series Order in a Chart Legend without ...
I want to list the first series first in the legend. I know I can go to select and reorder the legend entries...
Read more >
10.4 Reversing the Order of Items in a Legend
You want to reverse the order of items in a legend. 10.4.2 Solution. Add guides ( fill = guide_legend(reverse = TRUE) ) to...
Read more >
Reversing the order of a ggplot2 legend - Very statisticious
A quick example of reversing the legend order in a ggplot2 plot, which is done via guide_legend() instead of by changing the order...
Read more >
To reverse the legend order of a chart
In Design mode, right-click the chart legend you want to edit. Click Format Chart Legend. Check Reverse legend order. The legend order has...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found