sag_components 2.0.0-beta47 → 2.0.0-beta48

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -1203,4 +1203,6 @@ declare function LinkButton({ text, type, size, height, width, disabled, textCol
1203
1203
 
1204
1204
  declare function BatteryChart(props: any): react_jsx_runtime.JSX.Element;
1205
1205
 
1206
- export { AreaChart, BannerEventBoxList, BarChart, BarChartsByWeeks, BatteryChart, BreakdownPanel, Button, CollapseHeader, DialogOverlay, DoubleBarSingleLine, DoublePanelDataRow, EventDetailsCard, EventList, FilterPanel, Heatmap, IconButton, LinkButton, LinnerDataBox, MarketShareDescription, OneColumnContainer, PieChart, PopupCharts, QuickFilter, ReportTable, TabMenu, TopToggleList, TotalDoughnutChart, TotalHorizontalCharts };
1206
+ declare function PerformanceAnalyticsLegend(props: any): react_jsx_runtime.JSX.Element;
1207
+
1208
+ export { AreaChart, BannerEventBoxList, BarChart, BarChartsByWeeks, BatteryChart, BreakdownPanel, Button, CollapseHeader, DialogOverlay, DoubleBarSingleLine, DoublePanelDataRow, EventDetailsCard, EventList, FilterPanel, Heatmap, IconButton, LinkButton, LinnerDataBox, MarketShareDescription, OneColumnContainer, PerformanceAnalyticsLegend, PieChart, PopupCharts, QuickFilter, ReportTable, TabMenu, TopToggleList, TotalDoughnutChart, TotalHorizontalCharts };
package/dist/index.esm.js CHANGED
@@ -9837,67 +9837,70 @@ const DropdownMain = styled.div`
9837
9837
  `;
9838
9838
 
9839
9839
  /* eslint-disable react/prop-types */
9840
- const DropdownNew = ({
9841
- isMulti,
9842
- label,
9843
- labelEmptyValue,
9844
- options,
9845
- selectedValue,
9846
- placeHolder,
9847
- onChange,
9848
- required,
9849
- disabled,
9850
- width,
9851
- error,
9852
- errorMessage,
9853
- labelColor,
9854
- checkBoxColor,
9855
- xIconShow,
9856
- showLabelOnTop,
9857
- orderBy,
9858
- elementType
9859
- }) => /*#__PURE__*/React$1.createElement(DropdownMain, {
9860
- className: "DropdownMain",
9861
- width: width
9862
- }, isMulti ? /*#__PURE__*/React$1.createElement(DropdownMultiNew, {
9863
- className: "DropdownMultiNew",
9864
- placeHolder: placeHolder,
9865
- label: label,
9866
- labelEmptyValue: labelEmptyValue,
9867
- labelColor: labelColor,
9868
- checkBoxColor: checkBoxColor,
9869
- required: required,
9870
- options: options,
9871
- width: width,
9872
- disabled: disabled,
9873
- error: error,
9874
- errorMessage: errorMessage,
9875
- selectedValue: selectedValue,
9876
- xIconShow: xIconShow,
9877
- onChange: onChange,
9878
- showLabelOnTop: showLabelOnTop,
9879
- orderBy: orderBy,
9880
- elementType: elementType
9881
- }) : /*#__PURE__*/React$1.createElement(DropdownSingleNew, {
9882
- className: "DropdownSingleNew",
9883
- placeHolder: placeHolder,
9884
- label: label,
9885
- labelEmptyValue: labelEmptyValue,
9886
- labelColor: labelColor,
9887
- checkBoxColor: checkBoxColor,
9888
- required: required,
9889
- options: options,
9890
- width: width,
9891
- disabled: disabled,
9892
- error: error,
9893
- errorMessage: errorMessage,
9894
- selectedValue: selectedValue,
9895
- xIconShow: xIconShow,
9896
- onChange: onChange,
9897
- showLabelOnTop: showLabelOnTop,
9898
- orderBy: orderBy,
9899
- elementType: elementType
9900
- }));
9840
+ const DropdownNew = _ref => {
9841
+ let {
9842
+ isMulti,
9843
+ label,
9844
+ labelEmptyValue,
9845
+ options,
9846
+ selectedValue,
9847
+ placeHolder,
9848
+ onChange,
9849
+ required,
9850
+ disabled,
9851
+ width,
9852
+ error,
9853
+ errorMessage,
9854
+ labelColor,
9855
+ checkBoxColor,
9856
+ xIconShow,
9857
+ showLabelOnTop,
9858
+ orderBy,
9859
+ elementType
9860
+ } = _ref;
9861
+ return /*#__PURE__*/React$1.createElement(DropdownMain, {
9862
+ className: "DropdownMain",
9863
+ width: width
9864
+ }, isMulti ? /*#__PURE__*/React$1.createElement(DropdownMultiNew, {
9865
+ className: "DropdownMultiNew",
9866
+ placeHolder: placeHolder,
9867
+ label: label,
9868
+ labelEmptyValue: labelEmptyValue,
9869
+ labelColor: labelColor,
9870
+ checkBoxColor: checkBoxColor,
9871
+ required: required,
9872
+ options: options,
9873
+ width: width,
9874
+ disabled: disabled,
9875
+ error: error,
9876
+ errorMessage: errorMessage,
9877
+ selectedValue: selectedValue,
9878
+ xIconShow: xIconShow,
9879
+ onChange: onChange,
9880
+ showLabelOnTop: showLabelOnTop,
9881
+ orderBy: orderBy,
9882
+ elementType: elementType
9883
+ }) : /*#__PURE__*/React$1.createElement(DropdownSingleNew, {
9884
+ className: "DropdownSingleNew",
9885
+ placeHolder: placeHolder,
9886
+ label: label,
9887
+ labelEmptyValue: labelEmptyValue,
9888
+ labelColor: labelColor,
9889
+ checkBoxColor: checkBoxColor,
9890
+ required: required,
9891
+ options: options,
9892
+ width: width,
9893
+ disabled: disabled,
9894
+ error: error,
9895
+ errorMessage: errorMessage,
9896
+ selectedValue: selectedValue,
9897
+ xIconShow: xIconShow,
9898
+ onChange: onChange,
9899
+ showLabelOnTop: showLabelOnTop,
9900
+ orderBy: orderBy,
9901
+ elementType: elementType
9902
+ }));
9903
+ };
9901
9904
  DropdownNew.propTypes = {
9902
9905
  placeHolder: PropTypes.string,
9903
9906
  label: PropTypes.string,
@@ -10311,20 +10314,21 @@ const DatePicker = ({
10311
10314
  };
10312
10315
 
10313
10316
  /* eslint-disable import/no-extraneous-dependencies */
10314
- const RangePicker = ({
10315
- label,
10316
- onChange,
10317
- borderRadius,
10318
- required,
10319
- width,
10320
- height,
10321
- placeholder,
10322
- disabled,
10323
- borderColor,
10324
- borderColorFocus,
10325
- textColor,
10326
- selectedValue
10327
- }) => {
10317
+ const RangePicker = _ref => {
10318
+ let {
10319
+ label,
10320
+ onChange,
10321
+ borderRadius,
10322
+ required,
10323
+ width,
10324
+ height,
10325
+ placeholder,
10326
+ disabled,
10327
+ borderColor,
10328
+ borderColorFocus,
10329
+ textColor,
10330
+ selectedValue
10331
+ } = _ref;
10328
10332
  const [isFocused, setIsFocused] = useState(false);
10329
10333
  const [isOpen, setIsOpen] = useState(false);
10330
10334
  const [value, setValue] = useState(''); // Added value state
@@ -10756,22 +10760,23 @@ const QuarterPopupPicker = ({
10756
10760
  };
10757
10761
 
10758
10762
  /* eslint-disable import/no-extraneous-dependencies */
10759
- const QuarterPicker = ({
10760
- availableQuarters,
10761
- // ["Q1-2024"]
10762
- label,
10763
- onChange,
10764
- borderRadius,
10765
- required,
10766
- width,
10767
- height,
10768
- placeholder,
10769
- disabled,
10770
- borderColor,
10771
- borderColorFocus,
10772
- textColor,
10773
- selectedValue
10774
- }) => {
10763
+ const QuarterPicker = _ref => {
10764
+ let {
10765
+ availableQuarters,
10766
+ // ["Q1-2024"]
10767
+ label,
10768
+ onChange,
10769
+ borderRadius,
10770
+ required,
10771
+ width,
10772
+ height,
10773
+ placeholder,
10774
+ disabled,
10775
+ borderColor,
10776
+ borderColorFocus,
10777
+ textColor,
10778
+ selectedValue
10779
+ } = _ref;
10775
10780
  const [isFocused, setIsFocused] = useState(false);
10776
10781
  const [isOpen, setIsOpen] = useState(false);
10777
10782
  const [value, setValue] = useState('');
@@ -11210,21 +11215,22 @@ const MonthPopupPicker = ({
11210
11215
  };
11211
11216
 
11212
11217
  /* eslint-disable import/no-extraneous-dependencies */
11213
- const MonthPicker = ({
11214
- availableMonths,
11215
- label,
11216
- onChange,
11217
- borderRadius,
11218
- required,
11219
- width,
11220
- height,
11221
- placeholder,
11222
- disabled,
11223
- borderColor,
11224
- borderColorFocus,
11225
- textColor,
11226
- selectedValue
11227
- }) => {
11218
+ const MonthPicker = _ref => {
11219
+ let {
11220
+ availableMonths,
11221
+ label,
11222
+ onChange,
11223
+ borderRadius,
11224
+ required,
11225
+ width,
11226
+ height,
11227
+ placeholder,
11228
+ disabled,
11229
+ borderColor,
11230
+ borderColorFocus,
11231
+ textColor,
11232
+ selectedValue
11233
+ } = _ref;
11228
11234
  const [isFocused, setIsFocused] = useState(false);
11229
11235
  const [isOpen, setIsOpen] = useState(false);
11230
11236
  const [value, setValue] = useState('');
@@ -24449,21 +24455,22 @@ const DeleteIcon = styled.div`
24449
24455
  position: absolute;
24450
24456
  `;
24451
24457
 
24452
- const QuickFilterDropdownSingle = ({
24453
- label,
24454
- hoverColor,
24455
- options,
24456
- selectedValue,
24457
- placeHolder,
24458
- onChange,
24459
- disabled,
24460
- width,
24461
- error,
24462
- errorMessage,
24463
- xIconShow,
24464
- labelColor,
24465
- showLabelOnTop
24466
- }) => {
24458
+ const QuickFilterDropdownSingle = _ref => {
24459
+ let {
24460
+ label,
24461
+ hoverColor,
24462
+ options,
24463
+ selectedValue,
24464
+ placeHolder,
24465
+ onChange,
24466
+ disabled,
24467
+ width,
24468
+ error,
24469
+ errorMessage,
24470
+ xIconShow,
24471
+ labelColor,
24472
+ showLabelOnTop
24473
+ } = _ref;
24467
24474
  const [isFocused, setIsFocused] = useState(false);
24468
24475
  const [showOptions, setShowOptions] = useState(false);
24469
24476
  const [inputValue, setInputValue] = useState("");
@@ -24861,23 +24868,24 @@ const IconContainer$1 = styled.div`
24861
24868
  cursor: pointer;
24862
24869
  `;
24863
24870
 
24864
- const QuickFilterDropdownMultiSelection = ({
24865
- label,
24866
- labelEmptyValue,
24867
- options,
24868
- selectedValue,
24869
- placeHolder,
24870
- onChange,
24871
- required,
24872
- disabled,
24873
- width,
24874
- error,
24875
- errorMessage,
24876
- labelColor,
24877
- xIconShow,
24878
- checkBoxColor,
24879
- showLabelOnTop
24880
- }) => {
24871
+ const QuickFilterDropdownMultiSelection = _ref => {
24872
+ let {
24873
+ label,
24874
+ labelEmptyValue,
24875
+ options,
24876
+ selectedValue,
24877
+ placeHolder,
24878
+ onChange,
24879
+ required,
24880
+ disabled,
24881
+ width,
24882
+ error,
24883
+ errorMessage,
24884
+ labelColor,
24885
+ xIconShow,
24886
+ checkBoxColor,
24887
+ showLabelOnTop
24888
+ } = _ref;
24881
24889
  const [isFocused, setIsFocused] = useState(false);
24882
24890
  const [showOptions, setShowOptions] = useState(false);
24883
24891
  const [inputValue, setInputValue] = useState('');
@@ -25881,39 +25889,45 @@ const LegendWrapper = styled.div`
25881
25889
  padding-top: 15px;
25882
25890
  `;
25883
25891
 
25884
- const LegendUnionIcon = ({
25885
- width = '18',
25886
- height = '5',
25887
- color = '#9CCB3B'
25888
- }) => /*#__PURE__*/React$1.createElement("svg", {
25889
- width: width,
25890
- height: height,
25891
- viewBox: "0 0 18 5",
25892
- fill: "none",
25893
- xmlns: "http://www.w3.org/2000/svg"
25894
- }, /*#__PURE__*/React$1.createElement("path", {
25895
- fillRule: "evenodd",
25896
- clipRule: "evenodd",
25897
- d: "M11.45 2H17C17.2761 2 17.5 2.22386 17.5 2.5C17.5 2.77614 17.2761 3 17 3H11.45C11.2184 4.14112 10.2095 5 9 5C7.79052 5 6.78164 4.14112 6.55001 3H1C0.723858 3 0.5 2.77614 0.5 2.5C0.5 2.22386 0.723858 2 1 2H6.55001C6.78164 0.85888 7.79052 0 9 0C10.2095 0 11.2184 0.85888 11.45 2Z",
25898
- fill: color
25899
- }));
25892
+ const LegendUnionIcon = _ref => {
25893
+ let {
25894
+ width = '18',
25895
+ height = '5',
25896
+ color = '#9CCB3B'
25897
+ } = _ref;
25898
+ return /*#__PURE__*/React$1.createElement("svg", {
25899
+ width: width,
25900
+ height: height,
25901
+ viewBox: "0 0 18 5",
25902
+ fill: "none",
25903
+ xmlns: "http://www.w3.org/2000/svg"
25904
+ }, /*#__PURE__*/React$1.createElement("path", {
25905
+ fillRule: "evenodd",
25906
+ clipRule: "evenodd",
25907
+ d: "M11.45 2H17C17.2761 2 17.5 2.22386 17.5 2.5C17.5 2.77614 17.2761 3 17 3H11.45C11.2184 4.14112 10.2095 5 9 5C7.79052 5 6.78164 4.14112 6.55001 3H1C0.723858 3 0.5 2.77614 0.5 2.5C0.5 2.22386 0.723858 2 1 2H6.55001C6.78164 0.85888 7.79052 0 9 0C10.2095 0 11.2184 0.85888 11.45 2Z",
25908
+ fill: color
25909
+ }));
25910
+ };
25900
25911
 
25901
- const LegendLineIcon = ({
25902
- width = '19',
25903
- height = '3',
25904
- color = '#9CCB3B'
25905
- }) => /*#__PURE__*/React$1.createElement("svg", {
25906
- width: width,
25907
- height: height,
25908
- viewBox: "0 0 19 3",
25909
- fill: "none",
25910
- xmlns: "http://www.w3.org/2000/svg"
25911
- }, /*#__PURE__*/React$1.createElement("path", {
25912
- fillRule: "evenodd",
25913
- clipRule: "evenodd",
25914
- d: "M0 1.5C0 0.671573 0.671573 0 1.5 0H17.5C18.3284 0 19 0.671572 19 1.5C19 2.32843 18.3284 3 17.5 3H1.5C0.671575 3 0 2.32843 0 1.5Z",
25915
- fill: color
25916
- }));
25912
+ const LegendLineIcon = _ref => {
25913
+ let {
25914
+ width = '19',
25915
+ height = '3',
25916
+ color = '#9CCB3B'
25917
+ } = _ref;
25918
+ return /*#__PURE__*/React$1.createElement("svg", {
25919
+ width: width,
25920
+ height: height,
25921
+ viewBox: "0 0 19 3",
25922
+ fill: "none",
25923
+ xmlns: "http://www.w3.org/2000/svg"
25924
+ }, /*#__PURE__*/React$1.createElement("path", {
25925
+ fillRule: "evenodd",
25926
+ clipRule: "evenodd",
25927
+ d: "M0 1.5C0 0.671573 0.671573 0 1.5 0H17.5C18.3284 0 19 0.671572 19 1.5C19 2.32843 18.3284 3 17.5 3H1.5C0.671575 3 0 2.32843 0 1.5Z",
25928
+ fill: color
25929
+ }));
25930
+ };
25917
25931
 
25918
25932
  const ControlsContainer$5 = styled.div`
25919
25933
  position: relative;
@@ -26488,7 +26502,7 @@ const LegendTitle = styled.h5`
26488
26502
  display: flex;
26489
26503
  justify-content: space-between;
26490
26504
  @media (max-width: 1536px) {
26491
- font-size: 0.6875em; /* 11px → 0.6875em */
26505
+ font-size: 0.75em; /* 11px → 0.6875em */
26492
26506
  }
26493
26507
  @media (max-width: 1366px) {
26494
26508
  font-size: 0.625em; /* 10px → 0.625em */
@@ -28842,7 +28856,6 @@ const scrollableStyles$2 = `
28842
28856
  }
28843
28857
  `;
28844
28858
  const DoubleBarSingleLineContainer = styled.div`
28845
- position: relative;
28846
28859
  font-family: "Poppins", sans-serif;
28847
28860
  color: #212121;
28848
28861
  background-color: white;
@@ -28853,13 +28866,14 @@ const DoubleBarSingleLineContainer = styled.div`
28853
28866
  ${scrollableStyles$2}
28854
28867
  `;
28855
28868
  const LegendContainer = styled.div`
28856
- position: sticky;
28869
+ position: absolute;
28870
+ left: 0;
28857
28871
  text-align: center;
28858
- width: ${props => props.width};
28859
- bottom: calc(100% - ${props => props.height});
28872
+ width: ${props => `${props.width}px`};
28873
+ bottom: 30px;
28860
28874
  `;
28861
28875
  const Controls$1 = styled.div`
28862
- height: 100%;
28876
+ height: calc(100% - 30px);
28863
28877
  display: flex;
28864
28878
  flex-direction: column;
28865
28879
  background-color: white;
@@ -28911,6 +28925,7 @@ const DoubleBarSingleLine = props => {
28911
28925
  width,
28912
28926
  height,
28913
28927
  title,
28928
+ hasScroll,
28914
28929
  dataState,
28915
28930
  data,
28916
28931
  lineChartValueType,
@@ -28922,6 +28937,31 @@ const DoubleBarSingleLine = props => {
28922
28937
  noDataText
28923
28938
  } = props;
28924
28939
  const [legendData, setLegendData] = useState([]);
28940
+ const containerRef = useRef(null);
28941
+ const [containerWidth, setContainerWidth] = useState(0); // State to store the container's width
28942
+
28943
+ useEffect(() => {
28944
+ const updateWidth = () => {
28945
+ if (containerRef.current) {
28946
+ setContainerWidth(containerRef.current.offsetWidth); // Update the width
28947
+ }
28948
+ };
28949
+
28950
+ // Use ResizeObserver to observe changes in the container's size
28951
+ const resizeObserver = new ResizeObserver(() => {
28952
+ updateWidth();
28953
+ });
28954
+ if (containerRef.current) {
28955
+ resizeObserver.observe(containerRef.current); // Start observing
28956
+ }
28957
+
28958
+ // Cleanup observer on component unmount
28959
+ return () => {
28960
+ if (containerRef.current) {
28961
+ resizeObserver.unobserve(containerRef.current);
28962
+ }
28963
+ };
28964
+ }, []);
28925
28965
  useEffect(() => {
28926
28966
  const newLegendData = dataState.map(item => ({
28927
28967
  title: item.name,
@@ -29024,9 +29064,12 @@ const DoubleBarSingleLine = props => {
29024
29064
  } else {
29025
29065
  `${currentTooltipValue.toFixed(1)}`;
29026
29066
  }
29027
- return /*#__PURE__*/React$1.createElement(TooltipDiv, null, /*#__PURE__*/React$1.createElement(TooltipTitle$1, null, `${label}`), payload.map((item, idx) => /*#__PURE__*/React$1.createElement(TooltipLabel, {
29028
- key: item.name || idx
29029
- }, `${item.name}: ${item.value}`)));
29067
+ return /*#__PURE__*/React$1.createElement(TooltipDiv, null, /*#__PURE__*/React$1.createElement(TooltipTitle$1, null, `${label}`), payload.map((item, idx) => {
29068
+ const dataStateItem = dataState.find(state => state.key === item.dataKey);
29069
+ return /*#__PURE__*/React$1.createElement(TooltipLabel, {
29070
+ key: item.dataKey || idx
29071
+ }, `${dataStateItem?.name || item.dataKey}: ${item.value.toFixed(1)}`);
29072
+ }));
29030
29073
  };
29031
29074
  const CustomTickBarChart = props => {
29032
29075
  const {
@@ -29063,26 +29106,55 @@ const DoubleBarSingleLine = props => {
29063
29106
  dy: 22
29064
29107
  }, line))));
29065
29108
  };
29109
+
29110
+ // Shared chart syncing configuration
29111
+ const syncCharts = {
29112
+ syncId: "anyId",
29113
+ // This synchronizes the charts
29114
+ margin: {
29115
+ top: 20,
29116
+ right: 35,
29117
+ left: 35,
29118
+ bottom: 5
29119
+ }
29120
+ };
29121
+ // Transform data to align line points with bar chart centers
29122
+ const transformDataForLineChart = originalData => {
29123
+ return originalData.map(item => ({
29124
+ ...item,
29125
+ // Keep the original label for proper X-axis alignment
29126
+ originalLabel: item.label
29127
+ }));
29128
+ };
29129
+ const transformedData = transformDataForLineChart(data);
29066
29130
  return /*#__PURE__*/React$1.createElement(DoubleBarSingleLineContainer, {
29131
+ ref: containerRef,
29067
29132
  className: className,
29068
29133
  height: height,
29069
29134
  width: width,
29070
- hasScroll: data.length >= limitViewableItems
29135
+ hasScroll: hasScroll
29071
29136
  }, data.length === 0 ? /*#__PURE__*/React$1.createElement(NoDataFoundMessage, {
29072
29137
  noDataText: noDataText
29073
29138
  }) : /*#__PURE__*/React$1.createElement(Controls$1, {
29074
29139
  className: "Controls"
29075
- }, title !== '' && /*#__PURE__*/React$1.createElement(Title$2, null, title), /*#__PURE__*/React$1.createElement(ChartsWrapper, {
29076
- width: data.length >= limitViewableItems ? `${data.length * 178}px` : 'auto'
29077
- }, /*#__PURE__*/React$1.createElement(LineChartWrapper, null, /*#__PURE__*/React$1.createElement(ResponsiveContainer, null, /*#__PURE__*/React$1.createElement(LineChart, {
29078
- data: data,
29079
- margin: {
29080
- top: 10,
29081
- right: 35,
29082
- left: 35,
29083
- bottom: 32
29140
+ }, title && title.trim() !== '' && /*#__PURE__*/React$1.createElement(Title$2, null, title), /*#__PURE__*/React$1.createElement(ChartsWrapper, {
29141
+ width: hasScroll ? `${data.length * 178}px` : 'auto'
29142
+ }, /*#__PURE__*/React$1.createElement(LineChartWrapper, null, /*#__PURE__*/React$1.createElement(ResponsiveContainer, null, /*#__PURE__*/React$1.createElement(LineChart, _extends({
29143
+ data: transformedData
29144
+ }, syncCharts), /*#__PURE__*/React$1.createElement(XAxis, {
29145
+ dataKey: "label",
29146
+ tick: false,
29147
+ axisLine: false,
29148
+ tickLine: false,
29149
+ interval: 0,
29150
+ xAxisId: "line"
29151
+ // This is important for alignment
29152
+ ,
29153
+ padding: {
29154
+ left: barsWidth,
29155
+ right: barsWidth
29084
29156
  }
29085
- }, /*#__PURE__*/React$1.createElement(YAxis, {
29157
+ }), /*#__PURE__*/React$1.createElement(YAxis, {
29086
29158
  domain: [dataMin => Math.min(dataMin, calculateMinValue(data, dataState)) - 10, dataMax => Math.max(dataMax, calculateMaxValue(data, dataState)) + 10],
29087
29159
  hide: true
29088
29160
  }), dataState.filter(item => item.type === "line").map(obj => /*#__PURE__*/React$1.createElement(Line, {
@@ -29090,22 +29162,28 @@ const DoubleBarSingleLine = props => {
29090
29162
  key: obj.key,
29091
29163
  dataKey: obj.key,
29092
29164
  stroke: obj.color,
29093
- fill: obj.color,
29094
- legendType: "plainline"
29165
+ fill: obj.color
29166
+ // dot={{ r: 6, stroke: obj.color, fill: obj.color }}
29167
+ ,
29168
+ activeDot: {
29169
+ r: 8
29170
+ },
29171
+ isAnimationActive: false,
29172
+ xAxisId: "line"
29095
29173
  }, /*#__PURE__*/React$1.createElement(LabelList, {
29096
- content: CustomLabelLine
29097
- })))))), /*#__PURE__*/React$1.createElement(BarChartWrapper, null, /*#__PURE__*/React$1.createElement(ResponsiveContainer, null, /*#__PURE__*/React$1.createElement(BarChart$1, {
29174
+ content: CustomLabelLine,
29175
+ position: "top"
29176
+ })))))), /*#__PURE__*/React$1.createElement(BarChartWrapper, null, /*#__PURE__*/React$1.createElement(ResponsiveContainer, null, /*#__PURE__*/React$1.createElement(BarChart$1, _extends({
29098
29177
  data: data,
29099
29178
  barGap: 13,
29100
29179
  barCategoryGap: data.length >= limitViewableItems ? 178 : 50,
29101
- barSize: barsWidth,
29180
+ barSize: barsWidth
29181
+ }, syncCharts, {
29102
29182
  margin: {
29103
- top: 0,
29104
- right: 10,
29105
- left: 10,
29183
+ ...syncCharts.margin,
29106
29184
  bottom: 120
29107
29185
  }
29108
- }, /*#__PURE__*/React$1.createElement(Tooltip$2, {
29186
+ }), /*#__PURE__*/React$1.createElement(Tooltip$2, {
29109
29187
  content: /*#__PURE__*/React$1.createElement(CustomTooltip, null)
29110
29188
  }), showBackgroundGrid && /*#__PURE__*/React$1.createElement(CartesianGrid, {
29111
29189
  vertical: false,
@@ -29120,20 +29198,19 @@ const DoubleBarSingleLine = props => {
29120
29198
  tickLine: false,
29121
29199
  interval: 0
29122
29200
  }), /*#__PURE__*/React$1.createElement(YAxis, {
29123
- domain: [dataMin => Math.min(dataMin, 0),
29124
- // Handle negative values
29125
- dataMax => Math.max(dataMax, calculateMaxValue(data, dataState)) * 1.5],
29201
+ domain: [dataMin => Math.min(dataMin, 0), dataMax => Math.max(dataMax, calculateMaxValue(data, dataState)) * 1.5],
29126
29202
  hide: true
29127
29203
  }), dataState.filter(item => item.type === "bar").map(obj => /*#__PURE__*/React$1.createElement(Bar, {
29128
29204
  key: obj.key,
29129
29205
  dataKey: obj.key,
29130
29206
  fill: obj.color,
29131
- radius: [4, 4, 0, 0]
29207
+ radius: [4, 4, 0, 0],
29208
+ isAnimationActive: false
29132
29209
  }, /*#__PURE__*/React$1.createElement(LabelList, {
29133
29210
  dataKey: obj.key,
29134
29211
  content: CustomLabel
29135
29212
  }))))))), showLegend && /*#__PURE__*/React$1.createElement(LegendContainer, {
29136
- width: width,
29213
+ width: containerWidth,
29137
29214
  height: height
29138
29215
  }, /*#__PURE__*/React$1.createElement(PerformanceAnalyticsLegend, {
29139
29216
  legendData: legendData
@@ -30320,5 +30397,5 @@ const BatteryChart = props => {
30320
30397
  }))))))), starText !== "" && /*#__PURE__*/React$1.createElement(StarText, null, starText));
30321
30398
  };
30322
30399
 
30323
- export { AreaChart, BannerEventBoxList, BarChart, BarChartsByWeeks, BatteryChart, BreakdownPanel, Button, CollapseHeader, DialogOverlay, DoubleBarSingleLine, DoublePanelDataRow, EventDetailsCard, EventList, FilterPanel, Heatmap, IconButton, LinkButton, LinnerDataBox, MarketShareDescription, OneColumnContainer, PieChart, PopupCharts, QuickFilter, ReportTable, TabMenu, TopToggleList, TotalDoughnutChart, TotalHorizontalCharts };
30400
+ export { AreaChart, BannerEventBoxList, BarChart, BarChartsByWeeks, BatteryChart, BreakdownPanel, Button, CollapseHeader, DialogOverlay, DoubleBarSingleLine, DoublePanelDataRow, EventDetailsCard, EventList, FilterPanel, Heatmap, IconButton, LinkButton, LinnerDataBox, MarketShareDescription, OneColumnContainer, PerformanceAnalyticsLegend, PieChart, PopupCharts, QuickFilter, ReportTable, TabMenu, TopToggleList, TotalDoughnutChart, TotalHorizontalCharts };
30324
30401
  //# sourceMappingURL=index.esm.js.map