Skip to content

Commit

Permalink
style fix
Browse files Browse the repository at this point in the history
  • Loading branch information
birm committed Oct 16, 2024
1 parent 1f78ade commit cbd96e7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions source/components/VisualTools/Chart/BarChart.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ const transform = (data, field, isList = false) => {
return transformList(data, field);
}
const collator = new Intl.Collator(undefined, { numeric: true, sensitivity: 'base' });
function collSort(a,b){
return collator.compare(a,b);
function collSort(a, b) {
return collator.compare(a, b);
}
return d3.nest().key((d) => d[field])
.sortKeys(collSort)
Expand Down
4 changes: 2 additions & 2 deletions source/components/VisualTools/Chart/HorizontalBarChart.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ const transform = (data, field, isList = false) => {
return transformList(data, field);
}
const collator = new Intl.Collator(undefined, { numeric: true, sensitivity: 'base' });
function collSort(a,b){
return collator.compare(a,b);
function collSort(a, b) {
return collator.compare(a, b);
}
return d3
.nest()
Expand Down

0 comments on commit cbd96e7

Please sign in to comment.