Skip to content

Commit

Permalink
fix: Pie charts should use column order, not "largest first"
Browse files Browse the repository at this point in the history
Sorting by largest-first means that the column orders change with
every alternative.

Column-order still causes problems if you have different columns
in various alternatives, but at least in the case where
the columns are identical, the pie chart colors will be consistent.
  • Loading branch information
billyc committed Feb 8, 2022
1 parent 33e91f1 commit 3cb622d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/charts/pie.vue
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ export default class VueComponent extends Vue {
// format hover ?
private data = [
{
sort: false, // to keep colors consistent across plots
labels: [] as any[],
values: [] as any[],
type: 'pie',
Expand Down

0 comments on commit 3cb622d

Please sign in to comment.