Skip to content

Commit f74a3b1

Browse files
clean import
1 parent b6ef8ac commit f74a3b1

File tree

3 files changed

+10
-24
lines changed

3 files changed

+10
-24
lines changed

src/lib/components/barchartv2/Barchart.component.tsx

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import {
33
Bar,
44
BarChart,
55
CartesianGrid,
6-
ReferenceLine,
76
ResponsiveContainer,
87
Tooltip,
98
TooltipContentProps,
@@ -22,14 +21,6 @@ import { Loader } from '../loader/Loader.component';
2221
import { Text } from '../text/Text.component';
2322
import { BarchartTooltip } from './BarchartTooltip';
2423
import { UnitRange, useChartData } from './utils';
25-
import {
26-
LAST_ONE_HOUR,
27-
SAMPLE_DURATION_LAST_SEVEN_DAYS,
28-
SAMPLE_DURATION_LAST_TWENTY_FOUR_HOURS,
29-
SAMPLE_FREQUENCY_LAST_ONE_HOUR,
30-
SAMPLE_FREQUENCY_LAST_SEVEN_DAYS,
31-
SAMPLE_FREQUENCY_LAST_TWENTY_FOUR_HOURS,
32-
} from '../constants';
3324

3425
const CHART_CONSTANTS = {
3526
TICK_WIDTH_OFFSET: 4,

src/lib/components/barchartv2/BarchartTooltip.tsx

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,19 @@
1-
import {
2-
BarchartBars,
3-
BarchartTooltipFn,
4-
CategoryType,
5-
TimeType,
6-
} from './Barchart.component';
7-
import { FormattedDateTime } from '../date/FormattedDateTime';
81
import { TooltipContentProps } from 'recharts';
9-
import { getCurrentPoint } from './utils';
2+
import { LegendShape } from '../chartlegend/ChartLegend';
103
import {
114
ChartTooltipContainer,
12-
ChartTooltipItem,
135
ChartTooltipHeader,
6+
ChartTooltipItem,
147
ChartTooltipItemsContainer,
158
TooltipHeader,
169
} from '../charttooltip/ChartTooltip';
17-
import { LegendShape } from '../chartlegend/ChartLegend';
10+
import {
11+
BarchartBars,
12+
BarchartTooltipFn,
13+
CategoryType,
14+
TimeType,
15+
} from './Barchart.component';
16+
import { getCurrentPoint } from './utils';
1817

1918
export const BarchartTooltip = <T extends BarchartBars>({
2019
type,

src/lib/components/barchartv2/utils.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
import {
2-
BarchartProps,
3-
BarchartBars,
4-
BarchartTooltipFn,
5-
} from './Barchart.component';
1+
import { BarchartProps, BarchartBars } from './Barchart.component';
62
import { TooltipContentProps } from 'recharts';
73
import { chartColors, ChartColors } from '../../style/theme';
84
import { useChartLegend } from '../chartlegend/ChartLegendWrapper';

0 commit comments

Comments
 (0)