gifted-charts-core 0.0.25 → 0.0.27

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.
Files changed (53) hide show
  1. package/package.json +5 -1
  2. package/src/BarChart/Animated2DWithGradient.d.ts +24 -0
  3. package/src/BarChart/Animated2DWithGradient.js +108 -0
  4. package/src/BarChart/RenderStackBars.d.ts +27 -0
  5. package/src/BarChart/RenderStackBars.js +99 -0
  6. package/src/BarChart/index.d.ts +175 -0
  7. package/src/BarChart/index.js +611 -0
  8. package/src/BarChart/types.d.ts +570 -0
  9. package/src/BarChart/types.js +1 -0
  10. package/src/LineChart/LineChartBiColor.d.ts +104 -0
  11. package/src/LineChart/LineChartBiColor.js +520 -0
  12. package/src/LineChart/index.d.ts +383 -0
  13. package/src/LineChart/index.js +1397 -0
  14. package/src/LineChart/index.ts +4 -3
  15. package/src/LineChart/types.d.ts +531 -0
  16. package/src/LineChart/types.js +1 -0
  17. package/src/PieChart/index.d.ts +33 -0
  18. package/src/PieChart/index.js +119 -0
  19. package/src/PieChart/main.d.ts +49 -0
  20. package/src/PieChart/main.js +185 -0
  21. package/src/PieChart/types.d.ts +85 -0
  22. package/src/PieChart/types.js +1 -0
  23. package/src/PopulationPyramid/index.d.ts +137 -0
  24. package/src/PopulationPyramid/index.js +233 -0
  25. package/src/PopulationPyramid/index.ts +3 -3
  26. package/src/PopulationPyramid/types.d.ts +235 -0
  27. package/src/PopulationPyramid/types.js +1 -0
  28. package/src/PopulationPyramid/types.ts +4 -0
  29. package/src/components/AnimatedThreeDBar/index.d.ts +12 -0
  30. package/src/components/AnimatedThreeDBar/index.js +53 -0
  31. package/src/components/BarAndLineChartsWrapper/getHorizSectionsVals.d.ts +20 -0
  32. package/src/components/BarAndLineChartsWrapper/getHorizSectionsVals.js +217 -0
  33. package/src/components/BarAndLineChartsWrapper/index.d.ts +97 -0
  34. package/src/components/BarAndLineChartsWrapper/index.js +266 -0
  35. package/src/components/BarAndLineChartsWrapper/index.ts +5 -4
  36. package/src/components/common/StripAndLabel.d.ts +7 -0
  37. package/src/components/common/StripAndLabel.js +53 -0
  38. package/src/components/common/StripAndLabel.ts +2 -2
  39. package/src/components/common/types.d.ts +31 -0
  40. package/src/components/common/types.js +1 -0
  41. package/src/components/common/types.ts +1 -0
  42. package/src/index.d.ts +37 -0
  43. package/src/index.js +32 -0
  44. package/src/index.ts +146 -0
  45. package/src/utils/constants.d.ts +248 -0
  46. package/src/utils/constants.js +299 -0
  47. package/src/utils/constants.ts +0 -4
  48. package/src/utils/index.d.ts +89 -0
  49. package/src/utils/index.js +1008 -0
  50. package/src/utils/types.d.ts +337 -0
  51. package/src/utils/types.js +16 -0
  52. package/src/utils/types.ts +1 -0
  53. package/index.ts +0 -141
@@ -0,0 +1,53 @@
1
+ export var getTopAndLeftForStripAndLabel = function (props) {
2
+ var autoAdjustPointerLabelPosition = props.autoAdjustPointerLabelPosition, pointerX = props.pointerX, pointerLabelWidth = props.pointerLabelWidth, activatePointersOnLongPress = props.activatePointersOnLongPress, yAxisLabelWidth = props.yAxisLabelWidth, pointerRadius = props.pointerRadius, pointerWidth = props.pointerWidth, shiftPointerLabelX = props.shiftPointerLabelX, pointerLabelHeight = props.pointerLabelHeight, pointerYLocal = props.pointerYLocal, pointerStripUptoDataPoint = props.pointerStripUptoDataPoint, pointerStripHeight = props.pointerStripHeight, shiftPointerLabelY = props.shiftPointerLabelY, scrollX = props.scrollX, width = props.width, screenWidth = props.screenWidth;
3
+ var left = 0;
4
+ var top = 0;
5
+ if (autoAdjustPointerLabelPosition) {
6
+ if (pointerX < pointerLabelWidth / 2) {
7
+ left = 7;
8
+ }
9
+ else if (activatePointersOnLongPress &&
10
+ pointerX - scrollX < pointerLabelWidth / 2 - 10) {
11
+ left = 7;
12
+ }
13
+ else {
14
+ if (!activatePointersOnLongPress &&
15
+ pointerX >
16
+ (width || screenWidth - yAxisLabelWidth - 15) - pointerLabelWidth / 2) {
17
+ left = -pointerLabelWidth - 4;
18
+ }
19
+ else if (activatePointersOnLongPress &&
20
+ pointerX - scrollX >
21
+ ((width !== null && width !== void 0 ? width : 0) + 10 || screenWidth - yAxisLabelWidth - 15) -
22
+ pointerLabelWidth / 2) {
23
+ left = -pointerLabelWidth - 4;
24
+ }
25
+ else {
26
+ left = -pointerLabelWidth / 2 + 5;
27
+ }
28
+ }
29
+ }
30
+ else {
31
+ left = (pointerRadius || pointerWidth / 2) - 10 + shiftPointerLabelX;
32
+ }
33
+ if (autoAdjustPointerLabelPosition) {
34
+ if (pointerLabelHeight - pointerYLocal > 10) {
35
+ top = 10;
36
+ }
37
+ else {
38
+ top = -pointerLabelHeight;
39
+ }
40
+ }
41
+ else {
42
+ top =
43
+ (pointerStripUptoDataPoint
44
+ ? pointerRadius || pointerStripHeight / 2
45
+ : -pointerYLocal + 8) -
46
+ pointerLabelWidth / 2 +
47
+ shiftPointerLabelY;
48
+ }
49
+ return {
50
+ top: top,
51
+ left: left
52
+ };
53
+ };
@@ -1,4 +1,3 @@
1
- import { screenWidth } from '../../utils/constants'
2
1
  import { type StripAndLabelProps } from './types'
3
2
 
4
3
  interface IgetTopAndLeftForStripAndLabel {
@@ -24,7 +23,8 @@ export const getTopAndLeftForStripAndLabel = (
24
23
  pointerStripHeight,
25
24
  shiftPointerLabelY,
26
25
  scrollX,
27
- width
26
+ width,
27
+ screenWidth
28
28
  } = props
29
29
  let left = 0
30
30
  let top = 0
@@ -0,0 +1,31 @@
1
+ import { type ColorValue, type PointerEvent } from 'react-native';
2
+ import { type Pointer } from '../../utils/types';
3
+ import { type barDataItem, type stackDataItem } from '../../BarChart/types';
4
+ export interface StripAndLabelProps {
5
+ autoAdjustPointerLabelPosition: boolean;
6
+ pointerX: number;
7
+ pointerLabelWidth: number;
8
+ activatePointersOnLongPress: boolean;
9
+ yAxisLabelWidth: number;
10
+ pointerRadius: number;
11
+ pointerWidth: number;
12
+ shiftPointerLabelX: number;
13
+ pointerLabelHeight: number;
14
+ pointerYLocal: number;
15
+ pointerStripUptoDataPoint: boolean;
16
+ pointerStripHeight: number;
17
+ shiftPointerLabelY: number;
18
+ pointerItemLocal: barDataItem | stackDataItem;
19
+ showPointerStrip: boolean;
20
+ pointerStripWidth: number;
21
+ containerHeight: number;
22
+ xAxisThickness: number;
23
+ pointerStripColor: ColorValue;
24
+ pointerConfig: Pointer;
25
+ pointerLabelComponent: Function;
26
+ secondaryPointerItem: barDataItem | stackDataItem;
27
+ scrollX: number;
28
+ pointerEvents: PointerEvent;
29
+ width: number;
30
+ screenWidth: number;
31
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -28,4 +28,5 @@ export interface StripAndLabelProps {
28
28
  scrollX: number
29
29
  pointerEvents: PointerEvent
30
30
  width: number
31
+ screenWidth: number
31
32
  }
package/src/index.d.ts ADDED
@@ -0,0 +1,37 @@
1
+ /***********************************************************************************************************************
2
+ /***************************************** Bar Chart *****************************************
3
+ /***********************************************************************************************************************/
4
+ export { useBarChart } from './BarChart';
5
+ export { getPropsForAnimated2DWithGradient } from './BarChart/Animated2DWithGradient';
6
+ export { useRenderStackBars } from './BarChart/RenderStackBars';
7
+ export { type stackDataItem, type StackedBarChartPropsType, type BarChartPropsType, type defaultLineConfigType, type barDataItem, type Animated2DWithGradientPropsType, type RenderBarsPropsType, type trianglePropTypes, type animatedBarPropTypes, type FocusedBarConfig, type CommonPropsFor2Dand3DbarsType } from './BarChart/types';
8
+ /************************************************************************************************************************
9
+ /***************************************** Line Chart *****************************************
10
+ /************************************************************************************************************************/
11
+ export { useLineChart } from './LineChart';
12
+ export { useLineChartBiColor } from './LineChart/LineChartBiColor';
13
+ export { type LineChartPropsType, type lineDataItem, type bicolorLineDataItem, type LineChartBicolorPropsType } from './LineChart/types';
14
+ /***********************************************************************************************************************
15
+ /***************************************** Pie Chart *****************************************
16
+ /***********************************************************************************************************************/
17
+ export { usePieChart } from './PieChart';
18
+ export { getPieChartMainProps } from './PieChart/main';
19
+ export { type PieChartPropsType, type pieDataItem, type PieChartMainProps } from './PieChart/types';
20
+ /***********************************************************************************************************************
21
+ /************************************ Population Pyramid Chart ************************************
22
+ /***********************************************************************************************************************/
23
+ export { usePopulationPyramid } from './PopulationPyramid';
24
+ export { type popnPyramidDataItem, type popnPyramidDataItemReactJS, type RulesProps, type RulesPropsReactJS, type RulesPropsType, type PopulationPyramidPropsType, type PopulationPyramidPropsTypeReactJS, type TPopulationPyramidPropsType, type extendedPopulationPyramidPropsType } from './PopulationPyramid/types';
25
+ /***********************************************************************************************************************
26
+ /************************************ Common Components ************************************
27
+ /***********************************************************************************************************************/
28
+ export { useAnimatedThreeDBar } from './components/AnimatedThreeDBar';
29
+ export { getHorizSectionVals } from './components/BarAndLineChartsWrapper/getHorizSectionsVals';
30
+ export { useBarAndLineChartsWrapper } from './components/BarAndLineChartsWrapper';
31
+ export { getTopAndLeftForStripAndLabel } from './components/common/StripAndLabel';
32
+ /***********************************************************************************************************************
33
+ /********************************* common utils, constants and types ********************************
34
+ /***********************************************************************************************************************/
35
+ export { rnVersion, getCumulativeWidth, getLighterColor, svgQuadraticCurvePath, svgPath, bezierCommand, getSegmentString, getCurvePathWithSegments, getPreviousSegmentsLastPoint, getPathWithHighlight, getRegionPathObjects, getSegmentedPathObjects, getArrowPoints, getAxesAndRulesProps, getExtendedContainerHeightWithPadding, getSecondaryDataWithOffsetIncluded, getArrowProperty, getAllArrowProperties, maxAndMinUtil, computeMaxAndMinItems, getLabelTextUtil, getXForLineInBar, getYForLineInBar, clone, getLineConfigForBarChart, adjustToOffset } from './utils';
36
+ export { chartTypes, yAxisSides, loc, SEGMENT_START, SEGMENT_END, RANGE_ENTER, RANGE_EXIT, STOP, ruleTypes, AxesAndRulesDefaults, defaultArrowConfig, BarDefaults, defaultLineConfig, LineDefaults, defaultPointerConfig, pieColors, populationDefaults } from './utils/constants';
37
+ export { type RuleType, type RuleTypes, type RulesConfig, type CurveType, type EdgePosition, type PointerEvents, type secondaryYAxisType, type secondaryLineConfigType, type referenceConfigType, type arrowConfigType, type horizSectionPropTypes, type HorizSectionsType, type BarAndLineChartsWrapperTypes, type Pointer, type HighlightedRange, type LineSegment, type LineSvgProps, type LineProperties, type DataSet } from './utils/types';
package/src/index.js ADDED
@@ -0,0 +1,32 @@
1
+ /***********************************************************************************************************************
2
+ /***************************************** Bar Chart *****************************************
3
+ /***********************************************************************************************************************/
4
+ export { useBarChart } from './BarChart';
5
+ export { getPropsForAnimated2DWithGradient } from './BarChart/Animated2DWithGradient';
6
+ export { useRenderStackBars } from './BarChart/RenderStackBars';
7
+ /************************************************************************************************************************
8
+ /***************************************** Line Chart *****************************************
9
+ /************************************************************************************************************************/
10
+ export { useLineChart } from './LineChart';
11
+ export { useLineChartBiColor } from './LineChart/LineChartBiColor';
12
+ /***********************************************************************************************************************
13
+ /***************************************** Pie Chart *****************************************
14
+ /***********************************************************************************************************************/
15
+ export { usePieChart } from './PieChart';
16
+ export { getPieChartMainProps } from './PieChart/main';
17
+ /***********************************************************************************************************************
18
+ /************************************ Population Pyramid Chart ************************************
19
+ /***********************************************************************************************************************/
20
+ export { usePopulationPyramid } from './PopulationPyramid';
21
+ /***********************************************************************************************************************
22
+ /************************************ Common Components ************************************
23
+ /***********************************************************************************************************************/
24
+ export { useAnimatedThreeDBar } from './components/AnimatedThreeDBar';
25
+ export { getHorizSectionVals } from './components/BarAndLineChartsWrapper/getHorizSectionsVals';
26
+ export { useBarAndLineChartsWrapper } from './components/BarAndLineChartsWrapper';
27
+ export { getTopAndLeftForStripAndLabel } from './components/common/StripAndLabel';
28
+ /***********************************************************************************************************************
29
+ /********************************* common utils, constants and types ********************************
30
+ /***********************************************************************************************************************/
31
+ export { rnVersion, getCumulativeWidth, getLighterColor, svgQuadraticCurvePath, svgPath, bezierCommand, getSegmentString, getCurvePathWithSegments, getPreviousSegmentsLastPoint, getPathWithHighlight, getRegionPathObjects, getSegmentedPathObjects, getArrowPoints, getAxesAndRulesProps, getExtendedContainerHeightWithPadding, getSecondaryDataWithOffsetIncluded, getArrowProperty, getAllArrowProperties, maxAndMinUtil, computeMaxAndMinItems, getLabelTextUtil, getXForLineInBar, getYForLineInBar, clone, getLineConfigForBarChart, adjustToOffset } from './utils';
32
+ export { chartTypes, yAxisSides, loc, SEGMENT_START, SEGMENT_END, RANGE_ENTER, RANGE_EXIT, STOP, ruleTypes, AxesAndRulesDefaults, defaultArrowConfig, BarDefaults, defaultLineConfig, LineDefaults, defaultPointerConfig, pieColors, populationDefaults } from './utils/constants';
package/src/index.ts ADDED
@@ -0,0 +1,146 @@
1
+ /***********************************************************************************************************************
2
+ /***************************************** Bar Chart *****************************************
3
+ /***********************************************************************************************************************/
4
+
5
+ export { useBarChart } from './BarChart'
6
+ export { getPropsForAnimated2DWithGradient } from './BarChart/Animated2DWithGradient'
7
+ export { useRenderStackBars } from './BarChart/RenderStackBars'
8
+ export {
9
+ type stackDataItem,
10
+ type StackedBarChartPropsType,
11
+ type BarChartPropsType,
12
+ type defaultLineConfigType,
13
+ type barDataItem,
14
+ type Animated2DWithGradientPropsType,
15
+ type RenderBarsPropsType,
16
+ type trianglePropTypes,
17
+ type animatedBarPropTypes,
18
+ type FocusedBarConfig,
19
+ type CommonPropsFor2Dand3DbarsType
20
+ } from './BarChart/types'
21
+
22
+ /************************************************************************************************************************
23
+ /***************************************** Line Chart *****************************************
24
+ /************************************************************************************************************************/
25
+
26
+ export { useLineChart } from './LineChart'
27
+ export { useLineChartBiColor } from './LineChart/LineChartBiColor'
28
+ export {
29
+ type LineChartPropsType,
30
+ type lineDataItem,
31
+ type bicolorLineDataItem,
32
+ type LineChartBicolorPropsType
33
+ } from './LineChart/types'
34
+
35
+ /***********************************************************************************************************************
36
+ /***************************************** Pie Chart *****************************************
37
+ /***********************************************************************************************************************/
38
+
39
+ export { usePieChart } from './PieChart'
40
+ export { getPieChartMainProps } from './PieChart/main'
41
+ export {
42
+ type PieChartPropsType,
43
+ type pieDataItem,
44
+ type PieChartMainProps
45
+ } from './PieChart/types'
46
+
47
+ /***********************************************************************************************************************
48
+ /************************************ Population Pyramid Chart ************************************
49
+ /***********************************************************************************************************************/
50
+
51
+ export { usePopulationPyramid } from './PopulationPyramid'
52
+ export {
53
+ type popnPyramidDataItem,
54
+ type popnPyramidDataItemReactJS,
55
+ type RulesProps,
56
+ type RulesPropsReactJS,
57
+ type RulesPropsType,
58
+ type PopulationPyramidPropsType,
59
+ type PopulationPyramidPropsTypeReactJS,
60
+ type TPopulationPyramidPropsType,
61
+ type extendedPopulationPyramidPropsType
62
+ } from './PopulationPyramid/types'
63
+
64
+ /***********************************************************************************************************************
65
+ /************************************ Common Components ************************************
66
+ /***********************************************************************************************************************/
67
+
68
+ export { useAnimatedThreeDBar } from './components/AnimatedThreeDBar'
69
+ export { getHorizSectionVals } from './components/BarAndLineChartsWrapper/getHorizSectionsVals'
70
+ export { useBarAndLineChartsWrapper } from './components/BarAndLineChartsWrapper'
71
+ export { getTopAndLeftForStripAndLabel } from './components/common/StripAndLabel'
72
+
73
+ /***********************************************************************************************************************
74
+ /********************************* common utils, constants and types ********************************
75
+ /***********************************************************************************************************************/
76
+
77
+ export {
78
+ rnVersion,
79
+ getCumulativeWidth,
80
+ getLighterColor,
81
+ svgQuadraticCurvePath,
82
+ svgPath,
83
+ bezierCommand,
84
+ getSegmentString,
85
+ getCurvePathWithSegments,
86
+ getPreviousSegmentsLastPoint,
87
+ getPathWithHighlight,
88
+ getRegionPathObjects,
89
+ getSegmentedPathObjects,
90
+ getArrowPoints,
91
+ getAxesAndRulesProps,
92
+ getExtendedContainerHeightWithPadding,
93
+ getSecondaryDataWithOffsetIncluded,
94
+ getArrowProperty,
95
+ getAllArrowProperties,
96
+ maxAndMinUtil,
97
+ computeMaxAndMinItems,
98
+ getLabelTextUtil,
99
+ getXForLineInBar,
100
+ getYForLineInBar,
101
+ clone,
102
+ getLineConfigForBarChart,
103
+ adjustToOffset
104
+ } from './utils'
105
+
106
+ export {
107
+ chartTypes,
108
+ yAxisSides,
109
+ loc,
110
+ SEGMENT_START,
111
+ SEGMENT_END,
112
+ RANGE_ENTER,
113
+ RANGE_EXIT,
114
+ STOP,
115
+ ruleTypes,
116
+ AxesAndRulesDefaults,
117
+ defaultArrowConfig,
118
+ BarDefaults,
119
+ defaultLineConfig,
120
+ LineDefaults,
121
+ defaultPointerConfig,
122
+ pieColors,
123
+ populationDefaults
124
+ } from './utils/constants'
125
+
126
+ export {
127
+ type RuleType,
128
+ type RuleTypes,
129
+ type RulesConfig,
130
+ type CurveType,
131
+ type EdgePosition,
132
+ type PointerEvents,
133
+ type secondaryYAxisType,
134
+ type secondaryLineConfigType,
135
+ type referenceConfigType,
136
+ type arrowConfigType,
137
+ type horizSectionPropTypes,
138
+ type HorizSectionsType,
139
+ type BarAndLineChartsWrapperTypes,
140
+ type Pointer,
141
+ type HighlightedRange,
142
+ type LineSegment,
143
+ type LineSvgProps,
144
+ type LineProperties,
145
+ type DataSet
146
+ } from './utils/types'
@@ -0,0 +1,248 @@
1
+ import { type defaultLineConfigType } from '../BarChart/types';
2
+ import { CurveType, EdgePosition, type RuleTypes } from './types';
3
+ import { type FontStyle } from 'react-native-svg';
4
+ export declare enum chartTypes {
5
+ BAR = 0,
6
+ LINE = 1,
7
+ LINE_BI_COLOR = 2
8
+ }
9
+ export declare const defaultCurvature = 0.2;
10
+ export declare enum yAxisSides {
11
+ LEFT = 0,
12
+ RIGHT = 1
13
+ }
14
+ export declare enum loc {
15
+ IN = 0,
16
+ UP = 1,
17
+ DOWN = 2
18
+ }
19
+ export declare const SEGMENT_START = "segmentStart";
20
+ export declare const SEGMENT_END = "segmentEnd";
21
+ export declare const RANGE_ENTER = "RangeEnter";
22
+ export declare const RANGE_EXIT = "RangeExit";
23
+ export declare const STOP = "stop";
24
+ export declare const ruleTypes: RuleTypes;
25
+ export declare const AxesAndRulesDefaults: {
26
+ yAxisSide: yAxisSides;
27
+ yAxisColor: string;
28
+ yAxisExtraHeight: number;
29
+ yAxisThickness: number;
30
+ trimYAxisAtTop: boolean;
31
+ overflowTop: number;
32
+ xAxisColor: string;
33
+ xAxisThickness: number;
34
+ xAxisType: string;
35
+ xAxisTextNumberOfLines: number;
36
+ xAxisLabelsVerticalShift: number;
37
+ dashWidth: number;
38
+ dashGap: number;
39
+ backgroundColor: string;
40
+ hideRules: boolean;
41
+ rulesType: string;
42
+ rulesThickness: number;
43
+ rulesColor: string;
44
+ rulesConfigArray: never[];
45
+ rotateLabel: boolean;
46
+ showYAxisIndices: boolean;
47
+ yAxisIndicesHeight: number;
48
+ yAxisIndicesWidth: number;
49
+ yAxisIndicesColor: string;
50
+ showXAxisIndices: boolean;
51
+ xAxisIndicesHeight: number;
52
+ xAxisIndicesWidth: number;
53
+ xAxisIndicesColor: string;
54
+ hideOrigin: boolean;
55
+ hideYAxisText: boolean;
56
+ yAxisTextNumberOfLines: number;
57
+ showVerticalLines: boolean;
58
+ verticalLinesThickness: number;
59
+ verticalLinesColor: string;
60
+ verticalLinesStrokeDashArray: string;
61
+ verticalLinesShift: number;
62
+ verticalLinesZIndex: number;
63
+ verticalLinesSpacing: number;
64
+ verticalLinesUptoDataPoint: boolean;
65
+ noOfSections: number;
66
+ containerHeight: number;
67
+ width: number;
68
+ labelWidth: number;
69
+ labelsExtraHeight: number;
70
+ yAxisLabelWidth: number;
71
+ yAxisEmptyLabelWidth: number;
72
+ showFractionalValues: boolean;
73
+ roundToDigits: number;
74
+ referenceLinesOverChartContent: boolean;
75
+ };
76
+ export declare const defaultArrowConfig: {
77
+ length: number;
78
+ width: number;
79
+ strokeWidth: number;
80
+ strokeColor: string;
81
+ fillColor: string;
82
+ showArrowBase: boolean;
83
+ };
84
+ export declare const BarDefaults: {
85
+ barWidth: number;
86
+ spacing: number;
87
+ capThickness: number;
88
+ capColor: string;
89
+ capRadius: number;
90
+ barBorderColor: string;
91
+ horizontal: boolean;
92
+ rtl: boolean;
93
+ labelsWidthForHorizontal: number;
94
+ yAxisAtTop: boolean;
95
+ rotateYAxisTexts: undefined;
96
+ intactTopLabel: boolean;
97
+ showLine: boolean;
98
+ lineBehindBars: boolean;
99
+ disableScroll: boolean;
100
+ scrollToEnd: boolean;
101
+ scrollAnimation: boolean;
102
+ showScrollIndicator: boolean;
103
+ scrollEventThrottle: number;
104
+ side: string;
105
+ isAnimated: boolean;
106
+ animationDuration: number;
107
+ opacity: number;
108
+ isThreeD: boolean;
109
+ frontColor: string;
110
+ threeDBarGradientColor: string;
111
+ threeDBarFrontColor: string;
112
+ threeDBarSideColor: string;
113
+ threeDBarTopColor: string;
114
+ endReachedOffset: number;
115
+ focusedBarFrontColor: string;
116
+ focusedThreeDBarFrontColor: string;
117
+ focusedBarSideColor: string;
118
+ focusedBarTopColor: string;
119
+ };
120
+ export declare const defaultLineConfig: defaultLineConfigType;
121
+ export declare const LineDefaults: {
122
+ color: string;
123
+ curvature: number;
124
+ curveType: CurveType;
125
+ thickness: number;
126
+ isAnimated: boolean;
127
+ hideDataPoints: boolean;
128
+ spacing: number;
129
+ initialSpacing: number;
130
+ endSpacing: number;
131
+ animationDuration: number;
132
+ animateTogether: boolean;
133
+ disableScroll: boolean;
134
+ scrollToEnd: boolean;
135
+ scrollAnimation: boolean;
136
+ showScrollIndicator: boolean;
137
+ scrollEventThrottle: number;
138
+ showValuesAsDataPointsText: boolean;
139
+ dataPointsHeight: number;
140
+ dataPointsWidth: number;
141
+ dataPointsRadius: number;
142
+ dataPointsColor: string;
143
+ dataPointsColor2: string;
144
+ dataPointsColor3: string;
145
+ dataPointsShape: string;
146
+ textFontSize: number;
147
+ textColor: string;
148
+ startFillColor: string;
149
+ endFillColor: string;
150
+ lineGradient: boolean;
151
+ lineGradientStartColor: string;
152
+ lineGradientEndColor: string;
153
+ startOpacity: number;
154
+ endOpacity: number;
155
+ focusEnabled: boolean;
156
+ showDataPointOnFocus: boolean;
157
+ showStripOnFocus: boolean;
158
+ showTextOnFocus: boolean;
159
+ stripWidth: number;
160
+ unFocusOnPressOut: boolean;
161
+ delayBeforeUnFocus: number;
162
+ edgePosition: EdgePosition;
163
+ endReachedOffset: number;
164
+ };
165
+ export declare const defaultPointerConfig: {
166
+ height: number;
167
+ width: number;
168
+ radius: number;
169
+ pointerColor: string;
170
+ pointerComponent: null;
171
+ showPointerStrip: boolean;
172
+ pointerStripHeight: number;
173
+ pointerStripWidth: number;
174
+ pointerStripColor: string;
175
+ pointerStripUptoDataPoint: boolean;
176
+ pointerLabelComponent: null;
177
+ stripOverPointer: boolean;
178
+ shiftPointerLabelX: number;
179
+ shiftPointerLabelY: number;
180
+ pointerLabelWidth: number;
181
+ pointerLabelHeight: number;
182
+ autoAdjustPointerLabelPosition: boolean;
183
+ pointerVanishDelay: number;
184
+ activatePointersOnLongPress: boolean;
185
+ activatePointersDelay: number;
186
+ initialPointerIndex: number;
187
+ initialPointerAppearDelay: number;
188
+ persistPointer: boolean;
189
+ hidePointer1: boolean;
190
+ hidePointer2: boolean;
191
+ hidePointer3: boolean;
192
+ hidePointer4: boolean;
193
+ hidePointer5: boolean;
194
+ hideSecondaryPointer: boolean;
195
+ barTouchable: boolean;
196
+ stripBehindBars: boolean;
197
+ resetPointerOnDataChange: boolean;
198
+ };
199
+ export declare const pieColors: string[];
200
+ export declare const populationDefaults: {
201
+ height: number;
202
+ verticalMarginBetweenBars: number;
203
+ barsMapToYAxisSections: boolean;
204
+ xAxisNoOfSections: number;
205
+ showXAxisIndices: boolean;
206
+ xAxisIndicesWidth: number;
207
+ xAxisIndicesHeight: number;
208
+ xAxisIndicesColor: string;
209
+ showXAxisLabelTexts: boolean;
210
+ xAxisRoundToDigits: number;
211
+ showVerticalLines: boolean;
212
+ verticalLinesColor: string;
213
+ verticalLinesThickness: number;
214
+ verticalLinesType: string;
215
+ verticalLinesStrokeDashArray: number[];
216
+ defaultFontSize: number;
217
+ defaultFontColor: string;
218
+ defaultFontStyle: FontStyle;
219
+ defaultFontWeight: number;
220
+ defaultFontFamily: string;
221
+ yAxisLabelTextMarginRight: number;
222
+ showValuesAsBarLabels: boolean;
223
+ showMidAxis: boolean;
224
+ midAxisLabelWidth: number;
225
+ midAxisType: string;
226
+ leftBarLabelWidth: number;
227
+ rightBarLabelWidth: number;
228
+ leftBarColor: string;
229
+ rightBarColor: string;
230
+ leftBarBorderColor: string;
231
+ rightBarBorderColor: string;
232
+ leftBarBorderWidth: number;
233
+ rightBarBorderWidth: number;
234
+ leftBarBorderRadius: number;
235
+ rightBarBorderRadius: number;
236
+ allCornersRounded: boolean;
237
+ showSurplus: boolean;
238
+ showSurplusLeft: boolean;
239
+ showSurplusRight: boolean;
240
+ leftSurplusColor: string;
241
+ leftSurplusBorderColor: string;
242
+ rightSurplusColor: string;
243
+ rightSurplusBorderColor: string;
244
+ leftSurplusBorderWidth: number;
245
+ rightSurplusBorderWidth: number;
246
+ prefix: string;
247
+ suffix: string;
248
+ };