gifted-charts-core 0.1.11 → 0.1.13

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gifted-charts-core",
3
- "version": "0.1.11",
3
+ "version": "0.1.13",
4
4
  "description": "Mathematical and logical utilities used by react-gifted-charts and react-native-gifted-charts",
5
5
  "main": "./src/index.js",
6
6
  "files": [
@@ -111,12 +111,12 @@ export var useBarChart = function (props) {
111
111
  var scrollAnimation = (_t = props.scrollAnimation) !== null && _t !== void 0 ? _t : BarDefaults.scrollAnimation;
112
112
  var scrollEventThrottle = (_u = props.scrollEventThrottle) !== null && _u !== void 0 ? _u : BarDefaults.scrollEventThrottle;
113
113
  var labelsExtraHeight = (_v = props.labelsExtraHeight) !== null && _v !== void 0 ? _v : AxesAndRulesDefaults.labelsExtraHeight;
114
- var totalWidth = initialSpacing;
114
+ var totalWidth = initialSpacing + endSpacing;
115
115
  var maxItem = 0;
116
116
  var minItem = 0;
117
117
  if (props.stackData) {
118
- props.stackData.forEach(function (stackItem) {
119
- var _a, _b;
118
+ props.stackData.forEach(function (stackItem, index) {
119
+ var _a, _b, _c;
120
120
  var stackSumMax = stackItem.stacks.reduce(function (acc, stack) { return acc + (stack.value >= 0 ? stack.value : 0); }, 0);
121
121
  var stackSumMin = stackItem.stacks.reduce(function (acc, stack) { return acc + (stack.value < 0 ? stack.value : 0); }, 0);
122
122
  if (stackSumMax > maxItem) {
@@ -127,11 +127,11 @@ export var useBarChart = function (props) {
127
127
  }
128
128
  totalWidth +=
129
129
  ((_b = (_a = stackItem.stacks[0].barWidth) !== null && _a !== void 0 ? _a : props.barWidth) !== null && _b !== void 0 ? _b : defaultBarWidth) +
130
- spacing;
130
+ (index === data.length - 1 ? 0 : (_c = stackItem.spacing) !== null && _c !== void 0 ? _c : spacing);
131
131
  });
132
132
  }
133
133
  else {
134
- data.forEach(function (item) {
134
+ data.forEach(function (item, index) {
135
135
  var _a, _b, _c;
136
136
  if (item.value > maxItem) {
137
137
  maxItem = item.value;
@@ -141,7 +141,7 @@ export var useBarChart = function (props) {
141
141
  }
142
142
  totalWidth +=
143
143
  ((_b = (_a = item.barWidth) !== null && _a !== void 0 ? _a : props.barWidth) !== null && _b !== void 0 ? _b : defaultBarWidth) +
144
- ((_c = item.spacing) !== null && _c !== void 0 ? _c : spacing);
144
+ (index === data.length - 1 ? spacing : (_c = item.spacing) !== null && _c !== void 0 ? _c : spacing);
145
145
  });
146
146
  }
147
147
  var secondaryMaxItem = 0;
@@ -391,7 +391,7 @@ export var useBarChart = function (props) {
391
391
  });
392
392
  var animatedWidth = widthValue === null || widthValue === void 0 ? void 0 : widthValue.interpolate({
393
393
  inputRange: [0, 1],
394
- outputRange: [0, initialSpacing + totalWidth + endSpacing]
394
+ outputRange: [0, initialSpacing + totalWidth]
395
395
  });
396
396
  var getPropsCommonForBarAndStack = function (item, index) {
397
397
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
@@ -167,11 +167,11 @@ export const useBarChart = (props: extendedBarChartPropsType) => {
167
167
  const labelsExtraHeight =
168
168
  props.labelsExtraHeight ?? AxesAndRulesDefaults.labelsExtraHeight
169
169
 
170
- let totalWidth = initialSpacing
170
+ let totalWidth = initialSpacing + endSpacing
171
171
  let maxItem = 0
172
172
  let minItem = 0
173
173
  if (props.stackData) {
174
- props.stackData.forEach((stackItem) => {
174
+ props.stackData.forEach((stackItem, index) => {
175
175
  const stackSumMax = stackItem.stacks.reduce(
176
176
  (acc, stack) => acc + (stack.value >= 0 ? stack.value : 0),
177
177
  0
@@ -190,10 +190,10 @@ export const useBarChart = (props: extendedBarChartPropsType) => {
190
190
  }
191
191
  totalWidth +=
192
192
  (stackItem.stacks[0].barWidth ?? props.barWidth ?? defaultBarWidth) +
193
- spacing
193
+ (index === data.length - 1 ? 0 : stackItem.spacing ?? spacing)
194
194
  })
195
195
  } else {
196
- data.forEach((item: barDataItem) => {
196
+ data.forEach((item: barDataItem, index) => {
197
197
  if (item.value > maxItem) {
198
198
  maxItem = item.value
199
199
  }
@@ -202,7 +202,7 @@ export const useBarChart = (props: extendedBarChartPropsType) => {
202
202
  }
203
203
  totalWidth +=
204
204
  (item.barWidth ?? props.barWidth ?? defaultBarWidth) +
205
- (item.spacing ?? spacing)
205
+ (index === data.length - 1 ? spacing : item.spacing ?? spacing)
206
206
  })
207
207
  }
208
208
 
@@ -632,7 +632,7 @@ export const useBarChart = (props: extendedBarChartPropsType) => {
632
632
 
633
633
  const animatedWidth = widthValue?.interpolate({
634
634
  inputRange: [0, 1],
635
- outputRange: [0, initialSpacing + totalWidth + endSpacing]
635
+ outputRange: [0, initialSpacing + totalWidth]
636
636
  })
637
637
 
638
638
  const getPropsCommonForBarAndStack = (item: any, index: number) => {
@@ -81,17 +81,17 @@ export var useLineChartBiColor = function (props) {
81
81
  var areaChart = (_w = props.areaChart) !== null && _w !== void 0 ? _w : false;
82
82
  var textFontSize1 = (_x = props.textFontSize) !== null && _x !== void 0 ? _x : LineDefaults.textFontSize;
83
83
  var textColor1 = (_y = props.textColor) !== null && _y !== void 0 ? _y : LineDefaults.textColor;
84
- var totalWidth = initialSpacing;
84
+ var totalWidth = initialSpacing + endSpacing;
85
85
  var maxItem = 0;
86
86
  var minItem = 0;
87
- data.forEach(function (item) {
87
+ data.forEach(function (item, index) {
88
88
  if (item.value > maxItem) {
89
89
  maxItem = item.value;
90
90
  }
91
91
  if (item.value < minItem) {
92
92
  minItem = item.value;
93
93
  }
94
- totalWidth += spacing;
94
+ totalWidth += index === data.length - 1 ? 0 : spacing;
95
95
  });
96
96
  if ((_z = props.showFractionalValues) !== null && _z !== void 0 ? _z : props.roundToDigits) {
97
97
  maxItem *= 10 * ((_0 = props.roundToDigits) !== null && _0 !== void 0 ? _0 : 1);
@@ -99,17 +99,17 @@ export const useLineChartBiColor = (
99
99
  const textFontSize1 = props.textFontSize ?? LineDefaults.textFontSize
100
100
  const textColor1 = props.textColor ?? LineDefaults.textColor
101
101
 
102
- let totalWidth = initialSpacing
102
+ let totalWidth = initialSpacing + endSpacing
103
103
  let maxItem = 0
104
104
  let minItem = 0
105
- data.forEach((item: bicolorLineDataItem) => {
105
+ data.forEach((item: bicolorLineDataItem, index) => {
106
106
  if (item.value > maxItem) {
107
107
  maxItem = item.value
108
108
  }
109
109
  if (item.value < minItem) {
110
110
  minItem = item.value
111
111
  }
112
- totalWidth += spacing
112
+ totalWidth += index === data.length - 1 ? 0 : spacing
113
113
  })
114
114
 
115
115
  if (props.showFractionalValues ?? props.roundToDigits) {
@@ -233,7 +233,7 @@ export var useLineChart = function (props) {
233
233
  var textColor3 = (_93 = (_92 = props.textColor3) !== null && _92 !== void 0 ? _92 : props.textColor) !== null && _93 !== void 0 ? _93 : LineDefaults.textColor;
234
234
  var textColor4 = (_95 = (_94 = props.textColor4) !== null && _94 !== void 0 ? _94 : props.textColor) !== null && _95 !== void 0 ? _95 : LineDefaults.textColor;
235
235
  var textColor5 = (_97 = (_96 = props.textColor5) !== null && _96 !== void 0 ? _96 : props.textColor) !== null && _97 !== void 0 ? _97 : LineDefaults.textColor;
236
- var totalWidth = initialSpacing + spacing * (data0 !== null && data0 !== void 0 ? data0 : data).length;
236
+ var totalWidth = initialSpacing + spacing * (data0 !== null && data0 !== void 0 ? data0 : data).length - 1 + endSpacing;
237
237
  var _339 = computeMaxAndMinItems(data0 !== null && data0 !== void 0 ? data0 : data, props.roundToDigits, props.showFractionalValues), maxItem = _339.maxItem, minItem = _339.minItem;
238
238
  var maxValue = getMaxValue(props.maxValue, props.stepValue, noOfSections, maxItem);
239
239
  var mostNegativeValue = (_98 = props.mostNegativeValue) !== null && _98 !== void 0 ? _98 : minItem;
@@ -253,6 +253,9 @@ export var useLineChart = function (props) {
253
253
  animations.forEach(function (item, index) {
254
254
  item.addListener(function (val) {
255
255
  var _a, _b, _c, _d, _e, _f, _g, _h;
256
+ if (typeof data[index] === 'undefined') {
257
+ return;
258
+ }
256
259
  var temp = (_b = (_a = data[index]) === null || _a === void 0 ? void 0 : _a.value) !== null && _b !== void 0 ? _b : 0;
257
260
  data[index].value = (_c = val === null || val === void 0 ? void 0 : val.value) !== null && _c !== void 0 ? _c : 0;
258
261
  var pp = '';
@@ -428,7 +428,8 @@ export const useLineChart = (props: extendedLineChartPropsType) => {
428
428
  const textColor5 =
429
429
  props.textColor5 ?? props.textColor ?? LineDefaults.textColor
430
430
 
431
- const totalWidth = initialSpacing + spacing * (data0 ?? data).length
431
+ const totalWidth =
432
+ initialSpacing + spacing * (data0 ?? data).length - 1 + endSpacing
432
433
 
433
434
  const { maxItem, minItem } = computeMaxAndMinItems(
434
435
  data0 ?? data,
@@ -469,6 +470,10 @@ export const useLineChart = (props: extendedLineChartPropsType) => {
469
470
  if (animateOnDataChange && animations) {
470
471
  animations.forEach((item, index) => {
471
472
  item.addListener((val) => {
473
+ if (typeof data[index] === 'undefined') {
474
+ return
475
+ }
476
+
472
477
  const temp = data[index]?.value ?? 0
473
478
  data[index].value = val?.value ?? 0
474
479
  let pp = ''
@@ -17,14 +17,18 @@ var __read = (this && this.__read) || function (o, n) {
17
17
  import { useEffect, useState } from 'react';
18
18
  import { getTextSizeForPieLabels } from '../utils';
19
19
  export var usePieChart = function (props) {
20
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u;
20
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v;
21
21
  var radius = (_a = props.radius) !== null && _a !== void 0 ? _a : 120;
22
22
  var extraRadiusForFocused = (_b = props.extraRadiusForFocused) !== null && _b !== void 0 ? _b : (((_c = props.focusOnPress) !== null && _c !== void 0 ? _c : props.sectionAutoFocus) ? radius / 10 : 0);
23
23
  var pi = props.semiCircle ? Math.PI / 2 : Math.PI;
24
- var _v = __read(useState(-1), 2), selectedIndex = _v[0], setSelectedIndex = _v[1]; // at the start, nothing is selected
24
+ var _w = __read(useState((_d = props.focusedPieIndex) !== null && _d !== void 0 ? _d : -1), 2), selectedIndex = _w[0], setSelectedIndex = _w[1]; // at the start, nothing is selected
25
25
  // because we're going to use a useEffect, we need startAngle and total to be state variables
26
- var _w = __read(useState((_d = props.initialAngle) !== null && _d !== void 0 ? _d : (props.semiCircle ? -pi : 0)), 2), startAngle = _w[0], setStartAngle = _w[1];
27
- var _x = __read(useState(0), 2), total = _x[0], setTotal = _x[1];
26
+ var _x = __read(useState((_e = props.initialAngle) !== null && _e !== void 0 ? _e : (props.semiCircle ? -pi : 0)), 2), startAngle = _x[0], setStartAngle = _x[1];
27
+ var _y = __read(useState(0), 2), total = _y[0], setTotal = _y[1];
28
+ useEffect(function () {
29
+ var _a;
30
+ setSelectedIndex((_a = props.focusedPieIndex) !== null && _a !== void 0 ? _a : -1);
31
+ }, [props.focusedPieIndex]);
28
32
  useEffect(function () {
29
33
  var _a;
30
34
  // Update the total, this could be use to replace the forEach : const newTotal = props.data.reduce((acc, item) => acc + item.value, 0);
@@ -63,30 +67,30 @@ export var usePieChart = function (props) {
63
67
  }
64
68
  }
65
69
  }, [selectedIndex]);
66
- var pro = props.pro, data = props.data, donut = props.donut, isThreeD = props.isThreeD, semiCircle = props.semiCircle, _y = props.inwardExtraLengthForFocused, inwardExtraLengthForFocused = _y === void 0 ? 0 : _y, _z = props.isAnimated, isAnimated = _z === void 0 ? false : _z, edgesRadius = props.edgesRadius;
67
- var endAngle = (_e = props.endAngle) !== null && _e !== void 0 ? _e : startAngle + Math.PI * (semiCircle ? 1 : 2);
70
+ var pro = props.pro, data = props.data, donut = props.donut, isThreeD = props.isThreeD, semiCircle = props.semiCircle, _z = props.inwardExtraLengthForFocused, inwardExtraLengthForFocused = _z === void 0 ? 0 : _z, _0 = props.isAnimated, isAnimated = _0 === void 0 ? false : _0, edgesRadius = props.edgesRadius;
71
+ var endAngle = (_f = props.endAngle) !== null && _f !== void 0 ? _f : startAngle + Math.PI * (semiCircle ? 1 : 2);
68
72
  var canvasWidth = radius * 2;
69
73
  var canvasHeight = isThreeD ? radius * 2.3 : radius * 2;
70
- var strokeWidth = (_f = props.strokeWidth) !== null && _f !== void 0 ? _f : 0;
71
- var innerRadius = (_g = props.innerRadius) !== null && _g !== void 0 ? _g : radius / 2.5;
72
- var innerCircleColor = (_j = (_h = props.innerCircleColor) !== null && _h !== void 0 ? _h : props.backgroundColor) !== null && _j !== void 0 ? _j : 'white';
73
- var innerCircleBorderWidth = (_k = props.innerCircleBorderWidth) !== null && _k !== void 0 ? _k : (props.innerCircleBorderColor ? strokeWidth || 2 : 0);
74
- var innerCircleBorderColor = (_l = props.innerCircleBorderColor) !== null && _l !== void 0 ? _l : 'lightgray';
75
- var shiftInnerCenterX = (_m = props.shiftInnerCenterX) !== null && _m !== void 0 ? _m : 0;
76
- var shiftInnerCenterY = (_o = props.shiftInnerCenterY) !== null && _o !== void 0 ? _o : 0;
77
- var tiltAngle = (_p = props.tiltAngle) !== null && _p !== void 0 ? _p : '55deg';
74
+ var strokeWidth = (_g = props.strokeWidth) !== null && _g !== void 0 ? _g : 0;
75
+ var innerRadius = (_h = props.innerRadius) !== null && _h !== void 0 ? _h : radius / 2.5;
76
+ var innerCircleColor = (_k = (_j = props.innerCircleColor) !== null && _j !== void 0 ? _j : props.backgroundColor) !== null && _k !== void 0 ? _k : 'white';
77
+ var innerCircleBorderWidth = (_l = props.innerCircleBorderWidth) !== null && _l !== void 0 ? _l : (props.innerCircleBorderColor ? strokeWidth || 2 : 0);
78
+ var innerCircleBorderColor = (_m = props.innerCircleBorderColor) !== null && _m !== void 0 ? _m : 'lightgray';
79
+ var shiftInnerCenterX = (_o = props.shiftInnerCenterX) !== null && _o !== void 0 ? _o : 0;
80
+ var shiftInnerCenterY = (_p = props.shiftInnerCenterY) !== null && _p !== void 0 ? _p : 0;
81
+ var tiltAngle = (_q = props.tiltAngle) !== null && _q !== void 0 ? _q : '55deg';
78
82
  var isDataShifted = false;
79
83
  data.forEach(function (item) {
80
84
  if (item.shiftX || item.shiftY) {
81
85
  isDataShifted = true;
82
86
  }
83
87
  });
84
- var textSize = getTextSizeForPieLabels((_q = props.textSize) !== null && _q !== void 0 ? _q : 0, radius);
85
- var paddingHorizontal = ((_r = props.paddingHorizontal) !== null && _r !== void 0 ? _r : props.labelsPosition === 'onBorder')
86
- ? ((_s = props.textBackgroundRadius) !== null && _s !== void 0 ? _s : textSize) * 2 + 6
88
+ var textSize = getTextSizeForPieLabels((_r = props.textSize) !== null && _r !== void 0 ? _r : 0, radius);
89
+ var paddingHorizontal = ((_s = props.paddingHorizontal) !== null && _s !== void 0 ? _s : props.labelsPosition === 'onBorder')
90
+ ? ((_t = props.textBackgroundRadius) !== null && _t !== void 0 ? _t : textSize) * 2 + 6
87
91
  : 0;
88
- var paddingVertical = ((_t = props.paddingVertical) !== null && _t !== void 0 ? _t : props.labelsPosition === 'onBorder')
89
- ? ((_u = props.textBackgroundRadius) !== null && _u !== void 0 ? _u : textSize) * 2 + 6
92
+ var paddingVertical = ((_u = props.paddingVertical) !== null && _u !== void 0 ? _u : props.labelsPosition === 'onBorder')
93
+ ? ((_v = props.textBackgroundRadius) !== null && _v !== void 0 ? _v : textSize) * 2 + 6
90
94
  : 0;
91
95
  return {
92
96
  radius: radius,
@@ -44,13 +44,19 @@ export const usePieChart = (props: IPieChartPropsType): IusePieChart => {
44
44
  props.extraRadiusForFocused ??
45
45
  (props.focusOnPress ?? props.sectionAutoFocus ? radius / 10 : 0)
46
46
  const pi = props.semiCircle ? Math.PI / 2 : Math.PI
47
- const [selectedIndex, setSelectedIndex] = useState(-1) // at the start, nothing is selected
47
+ const [selectedIndex, setSelectedIndex] = useState(
48
+ props.focusedPieIndex ?? -1
49
+ ) // at the start, nothing is selected
48
50
  // because we're going to use a useEffect, we need startAngle and total to be state variables
49
51
  const [startAngle, setStartAngle] = useState(
50
52
  props.initialAngle ?? (props.semiCircle ? -pi : 0)
51
53
  )
52
54
  const [total, setTotal] = useState(0)
53
55
 
56
+ useEffect(() => {
57
+ setSelectedIndex(props.focusedPieIndex ?? -1)
58
+ }, [props.focusedPieIndex])
59
+
54
60
  useEffect(() => {
55
61
  // Update the total, this could be use to replace the forEach : const newTotal = props.data.reduce((acc, item) => acc + item.value, 0);
56
62
  let newTotal = 0
@@ -58,6 +58,7 @@ export interface PieChartPropsType {
58
58
  edgesRadius?: number;
59
59
  isAnimated?: boolean;
60
60
  animationDuration?: number;
61
+ focusedPieIndex?: number;
61
62
  }
62
63
  export interface pieDataItem {
63
64
  value: number;
@@ -61,6 +61,7 @@ export interface PieChartPropsType {
61
61
  edgesRadius?: number
62
62
  isAnimated?: boolean
63
63
  animationDuration?: number
64
+ focusedPieIndex?: number
64
65
  }
65
66
  export interface pieDataItem {
66
67
  value: number
@@ -112,7 +112,7 @@ export var getHorizSectionVals = function (props) {
112
112
  var showReferenceLine1 = referenceLinesConfig.showReferenceLine1, referenceLine1Position = referenceLinesConfig.referenceLine1Position, referenceLine1Config = referenceLinesConfig.referenceLine1Config, showReferenceLine2 = referenceLinesConfig.showReferenceLine2, referenceLine2Position = referenceLinesConfig.referenceLine2Position, referenceLine2Config = referenceLinesConfig.referenceLine2Config, showReferenceLine3 = referenceLinesConfig.showReferenceLine3, referenceLine3Position = referenceLinesConfig.referenceLine3Position, referenceLine3Config = referenceLinesConfig.referenceLine3Config;
113
113
  var defaultReferenceConfig = {
114
114
  thickness: rulesThickness,
115
- width: (width || totalWidth - spacing) + endSpacing,
115
+ width: (width || totalWidth - endSpacing) + endSpacing,
116
116
  color: 'black',
117
117
  type: rulesType,
118
118
  dashWidth: dashWidth,
@@ -228,7 +228,7 @@ export const getHorizSectionVals = (props: horizSectionPropTypes) => {
228
228
 
229
229
  const defaultReferenceConfig = {
230
230
  thickness: rulesThickness,
231
- width: (width || totalWidth - spacing) + endSpacing,
231
+ width: (width || totalWidth - endSpacing) + endSpacing,
232
232
  color: 'black',
233
233
  type: rulesType,
234
234
  dashWidth,
@@ -91,6 +91,7 @@ export var useBarAndLineChartsWrapper = function (props) {
91
91
  var verticalLinesAr = noOfVerticalLines
92
92
  ? __spreadArray([], __read(Array(noOfVerticalLines).keys()), false) : __spreadArray([], __read(Array(stackData ? stackData.length : data.length).keys()), false);
93
93
  var horizSectionProps = {
94
+ chartType: chartType,
94
95
  width: width,
95
96
  horizSections: horizSections,
96
97
  noOfSectionsBelowXAxis: noOfSectionsBelowXAxis,
@@ -168,6 +168,7 @@ export const useBarAndLineChartsWrapper = (
168
168
  : [...Array(stackData ? stackData.length : data.length).keys()]
169
169
 
170
170
  const horizSectionProps: horizSectionPropTypes = {
171
+ chartType,
171
172
  width,
172
173
  horizSections,
173
174
  noOfSectionsBelowXAxis,
@@ -544,7 +544,8 @@ export var getAxesAndRulesProps = function (props, stepValue, negativeStepValue,
544
544
  formatYLabel: props.formatYLabel
545
545
  };
546
546
  if (((_c = props.secondaryYAxis) !== null && _c !== void 0 ? _c : (_d = props.lineConfig) === null || _d === void 0 ? void 0 : _d.isSecondary) &&
547
- maxValue !== undefined) {
547
+ maxValue !== undefined &&
548
+ secondaryYAxis.maxValue === undefined) {
548
549
  axesAndRulesProps.secondaryYAxis = __assign(__assign({}, secondaryYAxis), { maxValue: maxValue });
549
550
  }
550
551
  return axesAndRulesProps;
@@ -743,7 +743,8 @@ export const getAxesAndRulesProps = (
743
743
  }
744
744
  if (
745
745
  (props.secondaryYAxis ?? props.lineConfig?.isSecondary) &&
746
- maxValue !== undefined
746
+ maxValue !== undefined &&
747
+ secondaryYAxis.maxValue === undefined
747
748
  ) {
748
749
  axesAndRulesProps.secondaryYAxis = { ...secondaryYAxis, maxValue }
749
750
  }
@@ -110,6 +110,7 @@ export interface arrowConfigType {
110
110
  showArrowBase: boolean;
111
111
  }
112
112
  export interface horizSectionPropTypes {
113
+ chartType: chartTypes;
113
114
  width: number | undefined;
114
115
  horizSections: any[];
115
116
  noOfSectionsBelowXAxis: number;
@@ -125,6 +125,7 @@ export interface arrowConfigType {
125
125
  }
126
126
 
127
127
  export interface horizSectionPropTypes {
128
+ chartType: chartTypes
128
129
  width: number | undefined
129
130
  horizSections: any[]
130
131
  noOfSectionsBelowXAxis: number