Skip to content

Commit

Permalink
Sorting bar charts by value
Browse files Browse the repository at this point in the history
  • Loading branch information
eltercero committed May 19, 2020
1 parent acb5028 commit 8edd2f1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export class GroupPctDistributionBars {
.x(d3.scaleThreshold())
.dimension(dimension)
.group(groupedDimension)
.ordering(d => d.key)
.ordering(d => -d.value)
.labelOffsetX(-_initialLabelOffset)
.gap(_gap)
.elasticX(true)
Expand Down

0 comments on commit 8edd2f1

Please sign in to comment.