From cbd96e72b77778edb9563c4421cd7663b79535e6 Mon Sep 17 00:00:00 2001 From: Birm Date: Wed, 16 Oct 2024 13:25:30 -0400 Subject: [PATCH] style fix --- source/components/VisualTools/Chart/BarChart.js | 4 ++-- source/components/VisualTools/Chart/HorizontalBarChart.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/source/components/VisualTools/Chart/BarChart.js b/source/components/VisualTools/Chart/BarChart.js index 4c25f7a..3e4caf3 100644 --- a/source/components/VisualTools/Chart/BarChart.js +++ b/source/components/VisualTools/Chart/BarChart.js @@ -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) diff --git a/source/components/VisualTools/Chart/HorizontalBarChart.js b/source/components/VisualTools/Chart/HorizontalBarChart.js index d11ae0d..0648fac 100644 --- a/source/components/VisualTools/Chart/HorizontalBarChart.js +++ b/source/components/VisualTools/Chart/HorizontalBarChart.js @@ -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()