File tree Expand file tree Collapse file tree 3 files changed +10
-24
lines changed
src/lib/components/barchartv2 Expand file tree Collapse file tree 3 files changed +10
-24
lines changed Original file line number Diff line number Diff line change 33 Bar ,
44 BarChart ,
55 CartesianGrid ,
6- ReferenceLine ,
76 ResponsiveContainer ,
87 Tooltip ,
98 TooltipContentProps ,
@@ -22,14 +21,6 @@ import { Loader } from '../loader/Loader.component';
2221import { Text } from '../text/Text.component' ;
2322import { BarchartTooltip } from './BarchartTooltip' ;
2423import { 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
3425const CHART_CONSTANTS = {
3526 TICK_WIDTH_OFFSET : 4 ,
Original file line number Diff line number Diff line change 1- import {
2- BarchartBars ,
3- BarchartTooltipFn ,
4- CategoryType ,
5- TimeType ,
6- } from './Barchart.component' ;
7- import { FormattedDateTime } from '../date/FormattedDateTime' ;
81import { TooltipContentProps } from 'recharts' ;
9- import { getCurrentPoint } from './utils ' ;
2+ import { LegendShape } from '../chartlegend/ChartLegend ' ;
103import {
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
1918export const BarchartTooltip = < T extends BarchartBars > ( {
2019 type,
Original file line number Diff line number Diff line change 1- import {
2- BarchartProps ,
3- BarchartBars ,
4- BarchartTooltipFn ,
5- } from './Barchart.component' ;
1+ import { BarchartProps , BarchartBars } from './Barchart.component' ;
62import { TooltipContentProps } from 'recharts' ;
73import { chartColors , ChartColors } from '../../style/theme' ;
84import { useChartLegend } from '../chartlegend/ChartLegendWrapper' ;
You can’t perform that action at this time.
0 commit comments