@nativescript-community/ui-chart 1.2.35 → 2.0.0
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/README.md +6 -0
- package/animation/ChartAnimator.d.ts +47 -4
- package/animation/ChartAnimator.js +49 -11
- package/animation/ChartAnimator.js.map +1 -1
- package/animation/Tween.d.ts +1 -1
- package/animation/Tween.js +4 -2
- package/animation/Tween.js.map +1 -1
- package/buffer/AbstractBuffer.d.ts +28 -3
- package/buffer/AbstractBuffer.js +22 -3
- package/buffer/AbstractBuffer.js.map +1 -1
- package/buffer/BarBuffer.d.ts +8 -12
- package/buffer/BarBuffer.js +33 -36
- package/buffer/BarBuffer.js.map +1 -1
- package/buffer/HorizontalBarBuffer.js +13 -10
- package/buffer/HorizontalBarBuffer.js.map +1 -1
- package/charts/BarChart.d.ts +70 -15
- package/charts/BarChart.js +92 -63
- package/charts/BarChart.js.map +1 -1
- package/charts/BarLineChartBase.d.ts +494 -73
- package/charts/BarLineChartBase.js +788 -407
- package/charts/BarLineChartBase.js.map +1 -1
- package/charts/BubbleChart.d.ts +11 -5
- package/charts/BubbleChart.js +10 -8
- package/charts/BubbleChart.js.map +1 -1
- package/charts/CandleStickChart.d.ts +8 -5
- package/charts/CandleStickChart.js +9 -10
- package/charts/CandleStickChart.js.map +1 -1
- package/charts/Chart.d.ts +424 -92
- package/charts/Chart.js +590 -290
- package/charts/Chart.js.map +1 -1
- package/charts/CombinedChart.d.ts +59 -29
- package/charts/CombinedChart.js +74 -67
- package/charts/CombinedChart.js.map +1 -1
- package/charts/HorizontalBarChart.d.ts +37 -7
- package/charts/HorizontalBarChart.js +97 -59
- package/charts/HorizontalBarChart.js.map +1 -1
- package/charts/LineChart.d.ts +3 -5
- package/charts/LineChart.js +6 -10
- package/charts/LineChart.js.map +1 -1
- package/charts/PieChart.d.ts +218 -64
- package/charts/PieChart.js +278 -168
- package/charts/PieChart.js.map +1 -1
- package/charts/PieRadarChartBase.d.ts +107 -18
- package/charts/PieRadarChartBase.js +156 -73
- package/charts/PieRadarChartBase.js.map +1 -1
- package/charts/RadarChart.d.ts +75 -35
- package/charts/RadarChart.js +114 -103
- package/charts/RadarChart.js.map +1 -1
- package/charts/ScatterChart.d.ts +10 -5
- package/charts/ScatterChart.js +11 -10
- package/charts/ScatterChart.js.map +1 -1
- package/components/AxisBase.d.ts +271 -101
- package/components/AxisBase.js +264 -254
- package/components/AxisBase.js.map +1 -1
- package/components/ComponentBase.d.ts +54 -19
- package/components/ComponentBase.js +60 -48
- package/components/ComponentBase.js.map +1 -1
- package/components/Description.d.ts +18 -9
- package/components/Description.js +12 -26
- package/components/Description.js.map +1 -1
- package/components/IMarker.d.ts +30 -1
- package/components/IMarker.js.map +1 -1
- package/components/Legend.d.ts +155 -58
- package/components/Legend.js +208 -172
- package/components/Legend.js.map +1 -1
- package/components/LegendEntry.d.ts +38 -0
- package/components/LegendEntry.js +34 -0
- package/components/LegendEntry.js.map +1 -1
- package/components/LimitLine.d.ts +40 -22
- package/components/LimitLine.js +44 -56
- package/components/LimitLine.js.map +1 -1
- package/components/MarkerImage.d.ts +1 -0
- package/components/MarkerImage.js +97 -0
- package/components/MarkerImage.js.map +1 -0
- package/components/XAxis.d.ts +41 -10
- package/components/XAxis.js +42 -24
- package/components/XAxis.js.map +1 -1
- package/components/YAxis.d.ts +114 -37
- package/components/YAxis.js +138 -106
- package/components/YAxis.js.map +1 -1
- package/data/BarData.d.ts +32 -4
- package/data/BarData.js +92 -24
- package/data/BarData.js.map +1 -1
- package/data/BarDataSet.d.ts +35 -18
- package/data/BarDataSet.js +42 -47
- package/data/BarDataSet.js.map +1 -1
- package/data/BarEntry.d.ts +3 -0
- package/data/BarEntry.js.map +1 -1
- package/data/BarLineScatterCandleBubbleData.d.ts +5 -0
- package/data/BarLineScatterCandleBubbleData.js +5 -0
- package/data/BarLineScatterCandleBubbleData.js.map +1 -1
- package/data/BarLineScatterCandleBubbleDataSet.d.ts +11 -3
- package/data/BarLineScatterCandleBubbleDataSet.js +11 -7
- package/data/BarLineScatterCandleBubbleDataSet.js.map +1 -1
- package/data/BaseDataSet.d.ts +129 -71
- package/data/BaseDataSet.js +146 -169
- package/data/BaseDataSet.js.map +1 -1
- package/data/BaseEntry.d.ts +3 -0
- package/data/BaseEntry.js.map +1 -1
- package/data/BubbleData.d.ts +7 -1
- package/data/BubbleData.js +8 -2
- package/data/BubbleData.js.map +1 -1
- package/data/BubbleDataSet.d.ts +7 -7
- package/data/BubbleDataSet.js +8 -15
- package/data/BubbleDataSet.js.map +1 -1
- package/data/BubbleEntry.d.ts +1 -0
- package/data/BubbleEntry.js.map +1 -1
- package/data/CandleData.js.map +1 -1
- package/data/CandleDataSet.d.ts +64 -30
- package/data/CandleDataSet.js +67 -74
- package/data/CandleDataSet.js.map +1 -1
- package/data/CandleEntry.d.ts +4 -0
- package/data/CandleEntry.js.map +1 -1
- package/data/ChartData.d.ts +273 -18
- package/data/ChartData.js +398 -93
- package/data/ChartData.js.map +1 -1
- package/data/CombinedData.d.ts +39 -12
- package/data/CombinedData.js +87 -71
- package/data/CombinedData.js.map +1 -1
- package/data/DataSet.d.ts +59 -8
- package/data/DataSet.js +114 -26
- package/data/DataSet.js.map +1 -1
- package/data/Entry.js.map +1 -1
- package/data/LineData.d.ts +5 -0
- package/data/LineData.js +5 -0
- package/data/LineData.js.map +1 -1
- package/data/LineDataSet.d.ts +80 -49
- package/data/LineDataSet.js +90 -135
- package/data/LineDataSet.js.map +1 -1
- package/data/LineRadarDataSet.d.ts +27 -17
- package/data/LineRadarDataSet.js +22 -35
- package/data/LineRadarDataSet.js.map +1 -1
- package/data/LineScatterCandleRadarDataSet.d.ts +30 -15
- package/data/LineScatterCandleRadarDataSet.js +36 -39
- package/data/LineScatterCandleRadarDataSet.js.map +1 -1
- package/data/PieData.d.ts +26 -0
- package/data/PieData.js +28 -2
- package/data/PieData.js.map +1 -1
- package/data/PieDataSet.d.ts +40 -36
- package/data/PieDataSet.js +36 -88
- package/data/PieDataSet.js.map +1 -1
- package/data/PieEntry.d.ts +3 -0
- package/data/PieEntry.js.map +1 -1
- package/data/RadarData.d.ts +10 -4
- package/data/RadarData.js +5 -6
- package/data/RadarData.js.map +1 -1
- package/data/RadarDataSet.d.ts +7 -21
- package/data/RadarDataSet.js +10 -49
- package/data/RadarDataSet.js.map +1 -1
- package/data/RadarEntry.js.map +1 -1
- package/data/ScatterData.d.ts +4 -1
- package/data/ScatterData.js +5 -2
- package/data/ScatterData.js.map +1 -1
- package/data/ScatterDataSet.d.ts +24 -14
- package/data/ScatterDataSet.js +26 -31
- package/data/ScatterDataSet.js.map +1 -1
- package/formatter/DefaultAxisValueFormatter.d.ts +17 -3
- package/formatter/DefaultAxisValueFormatter.js +12 -5
- package/formatter/DefaultAxisValueFormatter.js.map +1 -1
- package/formatter/DefaultFillFormatter.js +7 -7
- package/formatter/DefaultFillFormatter.js.map +1 -1
- package/formatter/DefaultValueFormatter.js.map +1 -1
- package/formatter/IAxisValueFormatter.d.ts +20 -2
- package/formatter/IAxisValueFormatter.js.map +1 -1
- package/formatter/IFillFormatter.d.ts +25 -0
- package/formatter/IFillFormatter.js.map +1 -1
- package/formatter/IValueFormatter.d.ts +21 -0
- package/formatter/IValueFormatter.js.map +1 -1
- package/formatter/ValueFormatter.d.ts +60 -0
- package/formatter/ValueFormatter.js +60 -0
- package/formatter/ValueFormatter.js.map +1 -1
- package/highlight/BarHighlighter.d.ts +22 -2
- package/highlight/BarHighlighter.js +43 -17
- package/highlight/BarHighlighter.js.map +1 -1
- package/highlight/ChartHighlighter.d.ts +87 -5
- package/highlight/ChartHighlighter.js +126 -23
- package/highlight/ChartHighlighter.js.map +1 -1
- package/highlight/CombinedHighlighter.d.ts +6 -0
- package/highlight/CombinedHighlighter.js +31 -16
- package/highlight/CombinedHighlighter.js.map +1 -1
- package/highlight/Highlight.d.ts +54 -1
- package/highlight/Highlight.js +5 -0
- package/highlight/Highlight.js.map +1 -1
- package/highlight/HorizontalBarHighlighter.d.ts +1 -1
- package/highlight/HorizontalBarHighlighter.js +14 -13
- package/highlight/HorizontalBarHighlighter.js.map +1 -1
- package/highlight/IHighlighter.d.ts +11 -1
- package/highlight/IHighlighter.js.map +1 -1
- package/highlight/PieHighlighter.js +2 -2
- package/highlight/PieHighlighter.js.map +1 -1
- package/highlight/PieRadarHighlighter.d.ts +12 -1
- package/highlight/PieRadarHighlighter.js +12 -4
- package/highlight/PieRadarHighlighter.js.map +1 -1
- package/highlight/RadarHighlighter.d.ts +12 -0
- package/highlight/RadarHighlighter.js +24 -10
- package/highlight/RadarHighlighter.js.map +1 -1
- package/index.d.ts +11 -0
- package/index.js +15 -0
- package/index.js.map +1 -0
- package/interfaces/dataprovider/BarDataProvider.d.ts +4 -4
- package/interfaces/dataprovider/BarLineScatterCandleBubbleDataProvider.d.ts +8 -3
- package/interfaces/dataprovider/BubbleDataProvider.d.ts +1 -1
- package/interfaces/dataprovider/CandleDataProvider.d.ts +1 -1
- package/interfaces/dataprovider/ChartInterface.d.ts +17 -22
- package/interfaces/dataprovider/CombinedDataProvider.d.ts +1 -1
- package/interfaces/dataprovider/LineDataProvider.d.ts +1 -1
- package/interfaces/dataprovider/ScatterDataProvider.d.ts +1 -1
- package/interfaces/datasets/IBarDataSet.d.ts +8 -22
- package/interfaces/datasets/IBarLineScatterCandleBubbleDataSet.d.ts +1 -3
- package/interfaces/datasets/IBubbleDataSet.d.ts +3 -9
- package/interfaces/datasets/ICandleDataSet.d.ts +44 -41
- package/interfaces/datasets/IDataSet.d.ts +35 -151
- package/interfaces/datasets/ILineDataSet.d.ts +15 -54
- package/interfaces/datasets/ILineRadarDataSet.d.ts +7 -28
- package/interfaces/datasets/ILineScatterCandleRadarDataSet.d.ts +5 -4
- package/interfaces/datasets/IPieDataSet.d.ts +22 -40
- package/interfaces/datasets/IRadarDataSet.d.ts +7 -13
- package/interfaces/datasets/IScatterDataSet.d.ts +17 -16
- package/jobs/AnimatedMoveViewJob.d.ts +3 -0
- package/jobs/AnimatedMoveViewJob.js +12 -8
- package/jobs/AnimatedMoveViewJob.js.map +1 -1
- package/jobs/AnimatedViewPortJob.d.ts +7 -8
- package/jobs/AnimatedViewPortJob.js +16 -23
- package/jobs/AnimatedViewPortJob.js.map +1 -1
- package/jobs/AnimatedZoomJob.d.ts +8 -5
- package/jobs/AnimatedZoomJob.js +30 -26
- package/jobs/AnimatedZoomJob.js.map +1 -1
- package/jobs/MoveViewJob.d.ts +3 -0
- package/jobs/MoveViewJob.js +10 -7
- package/jobs/MoveViewJob.js.map +1 -1
- package/jobs/ViewPortJob.d.ts +3 -5
- package/jobs/ViewPortJob.js +5 -11
- package/jobs/ViewPortJob.js.map +1 -1
- package/jobs/ZoomJob.js +14 -14
- package/jobs/ZoomJob.js.map +1 -1
- package/listener/BarLineChartTouchListener.d.ts +83 -1
- package/listener/BarLineChartTouchListener.js +169 -67
- package/listener/BarLineChartTouchListener.js.map +1 -1
- package/listener/ChartTouchListener.d.ts +39 -5
- package/listener/ChartTouchListener.js +38 -11
- package/listener/ChartTouchListener.js.map +1 -1
- package/listener/PieRadarChartTouchListener.d.ts +81 -1
- package/listener/PieRadarChartTouchListener.js +212 -16
- package/listener/PieRadarChartTouchListener.js.map +1 -1
- package/model/GradientColor.js.map +1 -1
- package/package.json +23 -15
- package/renderer/AxisRenderer.d.ts +66 -7
- package/renderer/AxisRenderer.js +69 -21
- package/renderer/AxisRenderer.js.map +1 -1
- package/renderer/BarChartRenderer.d.ts +11 -0
- package/renderer/BarChartRenderer.js +99 -71
- package/renderer/BarChartRenderer.js.map +1 -1
- package/renderer/BarLineScatterCandleBubbleRenderer.d.ts +37 -0
- package/renderer/BarLineScatterCandleBubbleRenderer.js +36 -8
- package/renderer/BarLineScatterCandleBubbleRenderer.js.map +1 -1
- package/renderer/BubbleChartRenderer.d.ts +6 -2
- package/renderer/BubbleChartRenderer.js +51 -40
- package/renderer/BubbleChartRenderer.js.map +1 -1
- package/renderer/CandleStickChartRenderer.d.ts +1 -1
- package/renderer/CandleStickChartRenderer.js +64 -50
- package/renderer/CandleStickChartRenderer.js.map +1 -1
- package/renderer/CombinedChartRenderer.d.ts +20 -1
- package/renderer/CombinedChartRenderer.js +72 -42
- package/renderer/CombinedChartRenderer.js.map +1 -1
- package/renderer/DataRenderer.d.ts +78 -4
- package/renderer/DataRenderer.js +65 -6
- package/renderer/DataRenderer.js.map +1 -1
- package/renderer/HorizontalBarChartRenderer.d.ts +5 -2
- package/renderer/HorizontalBarChartRenderer.js +87 -66
- package/renderer/HorizontalBarChartRenderer.js.map +1 -1
- package/renderer/LegendRenderer.d.ts +32 -0
- package/renderer/LegendRenderer.js +98 -59
- package/renderer/LegendRenderer.js.map +1 -1
- package/renderer/LineChartRenderer.d.ts +38 -1
- package/renderer/LineChartRenderer.js +185 -110
- package/renderer/LineChartRenderer.js.map +1 -1
- package/renderer/LineRadarRenderer.d.ts +19 -0
- package/renderer/LineRadarRenderer.js +25 -1
- package/renderer/LineRadarRenderer.js.map +1 -1
- package/renderer/LineScatterCandleRadarRenderer.d.ts +11 -0
- package/renderer/LineScatterCandleRadarRenderer.js +26 -9
- package/renderer/LineScatterCandleRadarRenderer.js.map +1 -1
- package/renderer/PieChartRenderer.d.ts +45 -1
- package/renderer/PieChartRenderer.js +195 -122
- package/renderer/PieChartRenderer.js.map +1 -1
- package/renderer/RadarChartRenderer.d.ts +10 -0
- package/renderer/RadarChartRenderer.js +119 -77
- package/renderer/RadarChartRenderer.js.map +1 -1
- package/renderer/Renderer.d.ts +8 -0
- package/renderer/Renderer.js +5 -0
- package/renderer/Renderer.js.map +1 -1
- package/renderer/ScatterChartRenderer.d.ts +5 -5
- package/renderer/ScatterChartRenderer.js +51 -37
- package/renderer/ScatterChartRenderer.js.map +1 -1
- package/renderer/XAxisRenderer.d.ts +29 -4
- package/renderer/XAxisRenderer.js +128 -95
- package/renderer/XAxisRenderer.js.map +1 -1
- package/renderer/XAxisRendererHorizontalBarChart.d.ts +11 -0
- package/renderer/XAxisRendererHorizontalBarChart.js +75 -57
- package/renderer/XAxisRendererHorizontalBarChart.js.map +1 -1
- package/renderer/XAxisRendererRadarChart.d.ts +5 -0
- package/renderer/XAxisRendererRadarChart.js +26 -13
- package/renderer/XAxisRendererRadarChart.js.map +1 -1
- package/renderer/YAxisRenderer.d.ts +42 -5
- package/renderer/YAxisRenderer.js +126 -69
- package/renderer/YAxisRenderer.js.map +1 -1
- package/renderer/YAxisRendererHorizontalBarChart.d.ts +22 -1
- package/renderer/YAxisRendererHorizontalBarChart.js +80 -58
- package/renderer/YAxisRendererHorizontalBarChart.js.map +1 -1
- package/renderer/YAxisRendererRadarChart.js +62 -32
- package/renderer/YAxisRendererRadarChart.js.map +1 -1
- package/renderer/scatter/ChevronDownShapeRenderer.d.ts +4 -0
- package/renderer/scatter/ChevronDownShapeRenderer.js +5 -1
- package/renderer/scatter/ChevronDownShapeRenderer.js.map +1 -1
- package/renderer/scatter/ChevronUpShapeRenderer.d.ts +4 -0
- package/renderer/scatter/ChevronUpShapeRenderer.js +5 -1
- package/renderer/scatter/ChevronUpShapeRenderer.js.map +1 -1
- package/renderer/scatter/CircleShapeRenderer.d.ts +4 -0
- package/renderer/scatter/CircleShapeRenderer.js +8 -5
- package/renderer/scatter/CircleShapeRenderer.js.map +1 -1
- package/renderer/scatter/CrossShapeRenderer.d.ts +4 -0
- package/renderer/scatter/CrossShapeRenderer.js +5 -1
- package/renderer/scatter/CrossShapeRenderer.js.map +1 -1
- package/renderer/scatter/IShapeRenderer.d.ts +14 -0
- package/renderer/scatter/IShapeRenderer.js.map +1 -1
- package/renderer/scatter/SquareShapeRenderer.d.ts +4 -0
- package/renderer/scatter/SquareShapeRenderer.js +8 -5
- package/renderer/scatter/SquareShapeRenderer.js.map +1 -1
- package/renderer/scatter/TriangleShapeRenderer.d.ts +4 -0
- package/renderer/scatter/TriangleShapeRenderer.js +9 -5
- package/renderer/scatter/TriangleShapeRenderer.js.map +1 -1
- package/renderer/scatter/XShapeRenderer.d.ts +4 -0
- package/renderer/scatter/XShapeRenderer.js +5 -1
- package/renderer/scatter/XShapeRenderer.js.map +1 -1
- package/utils/ColorTemplate.d.ts +21 -1
- package/utils/ColorTemplate.js +21 -3
- package/utils/ColorTemplate.js.map +1 -1
- package/utils/HorizontalViewPortHandler.d.ts +3 -0
- package/utils/HorizontalViewPortHandler.js +3 -0
- package/utils/HorizontalViewPortHandler.js.map +1 -1
- package/utils/MPSize.d.ts +7 -0
- package/utils/ObjectPool.d.ts +56 -0
- package/utils/ObjectPool.js +66 -8
- package/utils/ObjectPool.js.map +1 -1
- package/utils/Transformer.d.ts +118 -0
- package/utils/Transformer.js +141 -7
- package/utils/Transformer.js.map +1 -1
- package/utils/TransformerHorizontalBarChart.d.ts +10 -0
- package/utils/TransformerHorizontalBarChart.js +18 -2
- package/utils/TransformerHorizontalBarChart.js.map +1 -1
- package/utils/Utils.d.ts +139 -17
- package/utils/Utils.js +185 -60
- package/utils/Utils.js.map +1 -1
- package/utils/ViewPortHandler.d.ts +234 -19
- package/utils/ViewPortHandler.js +306 -63
- package/utils/ViewPortHandler.js.map +1 -1
- package/utils/colors/colorful.js.map +1 -1
- package/utils/colors/joyful.js.map +1 -1
- package/utils/colors/liberty.js.map +1 -1
- package/utils/colors/material.js.map +1 -1
- package/utils/colors/pastel.js.map +1 -1
- package/utils/colors/vordiplom.js.map +1 -1
- package/animation/ChartAnimator2.d.ts +0 -18
- package/animation/ChartAnimator2.js +0 -69
- package/animation/ChartAnimator2.js.map +0 -1
- package/charts/index.d.ts +0 -11
- package/charts/index.js +0 -15
- package/charts/index.js.map +0 -1
- package/utils/Curve.d.ts +0 -12
- package/utils/Curve.js +0 -156
- package/utils/Curve.js.map +0 -1
- package/utils/MPPointD.js +0 -1
- package/utils/MPPointD.js.map +0 -1
- package/utils/MPPointF.js +0 -1
- package/utils/MPPointF.js.map +0 -1
|
@@ -11,35 +11,93 @@ import { XAxisRenderer } from '../renderer/XAxisRenderer';
|
|
|
11
11
|
import { YAxisRenderer } from '../renderer/YAxisRenderer';
|
|
12
12
|
import { Transformer } from '../utils/Transformer';
|
|
13
13
|
import { Chart } from './Chart';
|
|
14
|
+
import { IDataSet } from '../interfaces/datasets/IDataSet';
|
|
14
15
|
export declare abstract class BarLineChartBase<U extends Entry, D extends IBarLineScatterCandleBubbleDataSet<U>, T extends BarLineScatterCandleBubbleData<U, D>> extends Chart<U, D, T> implements BarLineScatterCandleBubbleDataProvider {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
chartTouchListener: BarLineChartTouchListener;
|
|
17
|
+
/**
|
|
18
|
+
* the maximum number of entries to which values will be drawn
|
|
19
|
+
* (entry numbers greater than this value will cause value-labels to disappear)
|
|
20
|
+
*/
|
|
21
|
+
maxVisibleValueCount: number;
|
|
22
|
+
/**
|
|
23
|
+
* flag that indicates if auto scaling on the y axis is enabled
|
|
24
|
+
*/
|
|
25
|
+
autoScaleMinMaxEnabled: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* flag that indicates if pinch-zoom is enabled. if true, both x and y axis
|
|
28
|
+
* can be scaled with 2 fingers, if false, x and y axis can be scaled
|
|
29
|
+
* separately
|
|
30
|
+
*/
|
|
31
|
+
pinchZoomEnabled: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* flag that indicates if double tap zoom is enabled or not
|
|
34
|
+
*/
|
|
19
35
|
protected mDoubleTapToZoomEnabled: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* flag that indicates if highlighting per dragging over a fully zoomed out
|
|
38
|
+
* chart is enabled
|
|
39
|
+
*/
|
|
20
40
|
protected mHighlightPerDragEnabled: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* flag that indicates zoomed pan gesture should only work with 2 pointers
|
|
43
|
+
*/
|
|
21
44
|
zoomedPanWith2Pointers: boolean;
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
45
|
+
/**
|
|
46
|
+
* if true, dragging is enabled for the chart
|
|
47
|
+
*/
|
|
48
|
+
dragXEnabled: boolean;
|
|
49
|
+
dragYEnabled: boolean;
|
|
25
50
|
private mScaleXEnabled;
|
|
26
51
|
private mScaleYEnabled;
|
|
52
|
+
/**
|
|
53
|
+
* palet object for the (by default) lightgrey background of the grid
|
|
54
|
+
*/
|
|
27
55
|
protected mGridBackgroundPaint: Paint;
|
|
28
56
|
protected mBorderPaint: Paint;
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
57
|
+
/**
|
|
58
|
+
* flag indicating if the grid background should be drawn or not
|
|
59
|
+
*/
|
|
60
|
+
drawGridBackgroundEnabled: boolean;
|
|
61
|
+
drawBorders: boolean;
|
|
62
|
+
clipValuesToContent: boolean;
|
|
63
|
+
clipDataToContent: boolean;
|
|
64
|
+
drawHighlight: boolean;
|
|
65
|
+
/**
|
|
66
|
+
* Sets the minimum offset (padding) around the chart, defaults to 15
|
|
67
|
+
*/
|
|
68
|
+
minOffset: number;
|
|
69
|
+
/**
|
|
70
|
+
* flag indicating if the chart should stay at the same position after a rotation. Default is false.
|
|
71
|
+
*/
|
|
72
|
+
keepPositionOnRotation: boolean;
|
|
73
|
+
/**
|
|
74
|
+
* the listener for user drawing on the chart
|
|
75
|
+
*/
|
|
76
|
+
/**
|
|
77
|
+
* the object representing the labels on the left y-axis
|
|
78
|
+
*/
|
|
79
|
+
mAxisLeft: YAxis;
|
|
80
|
+
/**
|
|
81
|
+
* the object representing the labels on the right y-axis
|
|
82
|
+
*/
|
|
83
|
+
mAxisRight: YAxis;
|
|
84
|
+
/**
|
|
85
|
+
* axis renderer for the left axis.
|
|
86
|
+
*
|
|
87
|
+
*/
|
|
88
|
+
rendererLeftYAxis: YAxisRenderer;
|
|
89
|
+
/**
|
|
90
|
+
* axis renderer for the right axis.
|
|
91
|
+
*
|
|
92
|
+
*/
|
|
93
|
+
rendererRightYAxis: YAxisRenderer;
|
|
94
|
+
/**
|
|
95
|
+
* axis renderer for the x axis.
|
|
96
|
+
*
|
|
97
|
+
*/
|
|
98
|
+
rendererXAxis: XAxisRenderer;
|
|
99
|
+
protected leftAxisTransformer: Transformer;
|
|
100
|
+
protected rightAxisTransformer: Transformer;
|
|
43
101
|
protected init(): void;
|
|
44
102
|
get gridBackgroundPaint(): Paint;
|
|
45
103
|
get borderPaint(): Paint;
|
|
@@ -47,123 +105,486 @@ export declare abstract class BarLineChartBase<U extends Entry, D extends IBarLi
|
|
|
47
105
|
private totalTime;
|
|
48
106
|
private drawCycles;
|
|
49
107
|
onDraw(canvas: Canvas): void;
|
|
108
|
+
/**
|
|
109
|
+
* RESET PERFORMANCE TRACKING FIELDS
|
|
110
|
+
*/
|
|
50
111
|
resetTracking(): void;
|
|
51
112
|
protected prepareValuePxMatrix(): void;
|
|
52
113
|
protected prepareOffsetMatrix(): void;
|
|
53
114
|
notifyDataSetChanged(): void;
|
|
115
|
+
/**
|
|
116
|
+
* Performs auto scaling of the axis by recalculating the minimum and maximum y-values based on the entries currently in view.
|
|
117
|
+
*/
|
|
54
118
|
protected autoScale(): void;
|
|
55
119
|
protected calcMinMax(): void;
|
|
56
120
|
protected calculateLegendOffsets(offsets: any): void;
|
|
57
121
|
calculateOffsets(force?: boolean): void;
|
|
122
|
+
/**
|
|
123
|
+
* draws the grid background
|
|
124
|
+
*/
|
|
58
125
|
protected drawGridBackground(c: Canvas): void;
|
|
126
|
+
/**
|
|
127
|
+
* Returns the Transformer class that contains all matrices and is
|
|
128
|
+
* responsible for transforming values into pixels on the screen and
|
|
129
|
+
* backwards.
|
|
130
|
+
*/
|
|
59
131
|
getTransformer(which?: AxisDependency): Transformer;
|
|
132
|
+
get transformer(): Transformer;
|
|
133
|
+
/**
|
|
134
|
+
* ################ ################ ################ ################
|
|
135
|
+
*/
|
|
136
|
+
/**
|
|
137
|
+
* CODE BELOW THIS RELATED TO SCALING AND GESTURES AND MODIFICATION OF THE
|
|
138
|
+
* VIEWPORT
|
|
139
|
+
*/
|
|
60
140
|
protected mZoomMatrixBuffer: Matrix;
|
|
141
|
+
/**
|
|
142
|
+
* Zooms in by 1.4f, into the charts center.
|
|
143
|
+
*/
|
|
61
144
|
zoomIn(): void;
|
|
145
|
+
/**
|
|
146
|
+
* Zooms out by 0.7f, from the charts center.
|
|
147
|
+
*/
|
|
62
148
|
zoomOut(): void;
|
|
149
|
+
/**
|
|
150
|
+
* Zooms out to original size.
|
|
151
|
+
*/
|
|
63
152
|
resetZoom(): void;
|
|
153
|
+
/**
|
|
154
|
+
* Zooms in or out by the given scale factor. x and y are the coordinates
|
|
155
|
+
* (in pixels) of the zoom center.
|
|
156
|
+
*
|
|
157
|
+
* @param scaleX if < 1 --> zoom out, if > 1 --> zoom in
|
|
158
|
+
* @param scaleY if < 1 --> zoom out, if > 1 --> zoom in
|
|
159
|
+
* @param x
|
|
160
|
+
* @param y
|
|
161
|
+
*/
|
|
64
162
|
zoom(scaleX: any, scaleY: any, x: any, y: any): void;
|
|
163
|
+
/**
|
|
164
|
+
* Zooms in or out by the given scale factor.
|
|
165
|
+
* x and y are the values (NOT PIXELS) of the zoom center..
|
|
166
|
+
*
|
|
167
|
+
* @param scaleX
|
|
168
|
+
* @param scaleY
|
|
169
|
+
* @param xValue
|
|
170
|
+
* @param yValue
|
|
171
|
+
* @param axis the axis relative to which the zoom should take place
|
|
172
|
+
*/
|
|
65
173
|
zoomAtValue(scaleX: any, scaleY: any, xValue: any, yValue: any, axis: any): void;
|
|
174
|
+
/**
|
|
175
|
+
* Zooms to the center of the chart with the given scale factor.
|
|
176
|
+
*
|
|
177
|
+
* @param scaleX
|
|
178
|
+
* @param scaleY
|
|
179
|
+
*/
|
|
66
180
|
zoomToCenter(scaleX: any, scaleY: any): void;
|
|
181
|
+
/**
|
|
182
|
+
* Zooms by the specified scale factor to the specified values on the specified axis.
|
|
183
|
+
*
|
|
184
|
+
* @param scaleX
|
|
185
|
+
* @param scaleY
|
|
186
|
+
* @param xValue
|
|
187
|
+
* @param yValue
|
|
188
|
+
* @param axis
|
|
189
|
+
* @param duration
|
|
190
|
+
*/
|
|
67
191
|
zoomAndCenterAnimated(scaleX: any, scaleY: any, xValue: any, yValue: any, axis: any, duration: any): void;
|
|
192
|
+
/**
|
|
193
|
+
* Zooms by the specified scale factor to the specified values on the specified axis.
|
|
194
|
+
*
|
|
195
|
+
* @param scaleX
|
|
196
|
+
* @param scaleY
|
|
197
|
+
* @param xValue
|
|
198
|
+
* @param yValue
|
|
199
|
+
* @param axis
|
|
200
|
+
*/
|
|
68
201
|
zoomAndCenter(scaleX: any, scaleY: any, xValue: any, yValue: any, axis: any): void;
|
|
69
202
|
protected mFitScreenMatrixBuffer: Matrix;
|
|
203
|
+
/**
|
|
204
|
+
* Resets all zooming and dragging and makes the chart fit exactly it's
|
|
205
|
+
* bounds.
|
|
206
|
+
*/
|
|
70
207
|
fitScreen(): void;
|
|
208
|
+
/**
|
|
209
|
+
* Sets the minimum scale factor value to which can be zoomed out. 1 =
|
|
210
|
+
* fitScreen
|
|
211
|
+
*
|
|
212
|
+
* @param scaleX
|
|
213
|
+
* @param scaleY
|
|
214
|
+
*/
|
|
71
215
|
setScaleMinima(scaleX: any, scaleY: any): void;
|
|
72
|
-
|
|
73
|
-
|
|
216
|
+
/**
|
|
217
|
+
* Sets the scale factor. 1 =
|
|
218
|
+
* fitScreen
|
|
219
|
+
*
|
|
220
|
+
* @param scaleX
|
|
221
|
+
* @param scaleY
|
|
222
|
+
*/
|
|
223
|
+
setScale(scaleX: any, scaleY: any): void;
|
|
224
|
+
/**
|
|
225
|
+
* Sets the size of the area (range on the x-axis) that should be maximum
|
|
226
|
+
* visible at once (no further zooming out allowed). If this is e.g. set to
|
|
227
|
+
* 10, no more than a range of 10 on the x-axis can be viewed at once without
|
|
228
|
+
* scrolling.
|
|
229
|
+
*
|
|
230
|
+
* @param maxXRange The maximum visible range of x-values.
|
|
231
|
+
*/
|
|
232
|
+
set visibleXRangeMaximum(maxXRange: any);
|
|
233
|
+
/**
|
|
234
|
+
* Sets the size of the area (range on the x-axis) that should be minimum
|
|
235
|
+
* visible at once (no further zooming in allowed). If this is e.g. set to
|
|
236
|
+
* 10, no less than a range of 10 on the x-axis can be viewed at once without
|
|
237
|
+
* scrolling.
|
|
238
|
+
*
|
|
239
|
+
* @param minXRange The minimum visible range of x-values.
|
|
240
|
+
*/
|
|
241
|
+
set visibleXRangeMinimum(minXRange: any);
|
|
242
|
+
/**
|
|
243
|
+
* Limits the maximum and minimum x range that can be visible by pinching and zooming. e.g. minRange=10, maxRange=100 the
|
|
244
|
+
* smallest range to be displayed at once is 10, and no more than a range of 100 values can be viewed at once without
|
|
245
|
+
* scrolling
|
|
246
|
+
*
|
|
247
|
+
* @param minXRange
|
|
248
|
+
* @param maxXRange
|
|
249
|
+
*/
|
|
74
250
|
setVisibleXRange(minXRange: any, maxXRange: any): void;
|
|
251
|
+
/**
|
|
252
|
+
* Sets the size of the area (range on the y-axis) that should be maximum
|
|
253
|
+
* visible at once.
|
|
254
|
+
*
|
|
255
|
+
* @param maxYRange the maximum visible range on the y-axis
|
|
256
|
+
* @param axis the axis for which this limit should apply
|
|
257
|
+
*/
|
|
75
258
|
setVisibleYRangeMaximum(maxYRange: any, axis: any): void;
|
|
259
|
+
/**
|
|
260
|
+
* Sets the size of the area (range on the y-axis) that should be minimum visible at once, no further zooming in possible.
|
|
261
|
+
*
|
|
262
|
+
* @param minYRange
|
|
263
|
+
* @param axis the axis for which this limit should apply
|
|
264
|
+
*/
|
|
76
265
|
setVisibleYRangeMinimum(minYRange: any, axis: any): void;
|
|
266
|
+
/**
|
|
267
|
+
* Limits the maximum and minimum y range that can be visible by pinching and zooming.
|
|
268
|
+
*
|
|
269
|
+
* @param minYRange
|
|
270
|
+
* @param maxYRange
|
|
271
|
+
* @param axis
|
|
272
|
+
*/
|
|
77
273
|
setVisibleYRange(minYRange: any, maxYRange: any, axis: any): void;
|
|
274
|
+
/**
|
|
275
|
+
* Moves the left side of the current viewport to the specified x-position.
|
|
276
|
+
* This also refreshes the chart by calling invalidate().
|
|
277
|
+
*
|
|
278
|
+
* @param xValue
|
|
279
|
+
*/
|
|
78
280
|
moveViewToX(xValue: any): void;
|
|
281
|
+
/**
|
|
282
|
+
* This will move the left side of the current viewport to the specified
|
|
283
|
+
* x-value on the x-axis, and center the viewport to the specified y value on the y-axis.
|
|
284
|
+
* This also refreshes the chart by calling invalidate().
|
|
285
|
+
*
|
|
286
|
+
* @param xValue
|
|
287
|
+
* @param yValue
|
|
288
|
+
* @param axis - which axis should be used as a reference for the y-axis
|
|
289
|
+
*/
|
|
79
290
|
moveViewTo(xValue: any, yValue: any, axis: any): void;
|
|
291
|
+
/**
|
|
292
|
+
* This will move the left side of the current viewport to the specified x-value
|
|
293
|
+
* and center the viewport to the y value animated.
|
|
294
|
+
* This also refreshes the chart by calling invalidate().
|
|
295
|
+
*
|
|
296
|
+
* @param xValue
|
|
297
|
+
* @param yValue
|
|
298
|
+
* @param axis
|
|
299
|
+
* @param duration the duration of the animation in milliseconds
|
|
300
|
+
*/
|
|
80
301
|
moveViewToAnimated(xValue: any, yValue: any, axis: any, duration: any): void;
|
|
302
|
+
/**
|
|
303
|
+
* Centers the viewport to the specified y value on the y-axis.
|
|
304
|
+
* This also refreshes the chart by calling invalidate().
|
|
305
|
+
*
|
|
306
|
+
* @param yValue
|
|
307
|
+
* @param axis - which axis should be used as a reference for the y-axis
|
|
308
|
+
*/
|
|
81
309
|
centerViewToY(yValue: any, axis: any): void;
|
|
310
|
+
/**
|
|
311
|
+
* This will move the center of the current viewport to the specified
|
|
312
|
+
* x and y value.
|
|
313
|
+
* This also refreshes the chart by calling invalidate().
|
|
314
|
+
*
|
|
315
|
+
* @param xValue
|
|
316
|
+
* @param yValue
|
|
317
|
+
* @param axis - which axis should be used as a reference for the y axis
|
|
318
|
+
*/
|
|
82
319
|
centerViewTo(xValue: any, yValue: any, axis: any): void;
|
|
320
|
+
/**
|
|
321
|
+
* This will move the center of the current viewport to the specified
|
|
322
|
+
* x and y value animated.
|
|
323
|
+
*
|
|
324
|
+
* @param xValue
|
|
325
|
+
* @param yValue
|
|
326
|
+
* @param axis
|
|
327
|
+
* @param duration the duration of the animation in milliseconds
|
|
328
|
+
*/
|
|
83
329
|
centerViewToAnimated(xValue: any, yValue: any, axis: any, duration: any): void;
|
|
330
|
+
/**
|
|
331
|
+
* flag that indicates if a custom viewport offset has been set
|
|
332
|
+
*/
|
|
84
333
|
private mCustomViewPortEnabled;
|
|
334
|
+
/**
|
|
335
|
+
* Sets custom offsets for the current ViewPort (the offsets on the sides of
|
|
336
|
+
* the actual chart window). Setting this will prevent the chart from
|
|
337
|
+
* automatically calculating it's offsets. Use resetViewPortOffsets() to
|
|
338
|
+
* undo this. ONLY USE THIS WHEN YOU KNOW WHAT YOU ARE DOING, else use
|
|
339
|
+
* setExtraOffsets(...).
|
|
340
|
+
*
|
|
341
|
+
* @param left
|
|
342
|
+
* @param top
|
|
343
|
+
* @param right
|
|
344
|
+
* @param bottom
|
|
345
|
+
*/
|
|
85
346
|
setViewPortOffsets(left: any, top: any, right: any, bottom: any): void;
|
|
347
|
+
/**
|
|
348
|
+
* Resets all custom offsets set via setViewPortOffsets(...) method. Allows
|
|
349
|
+
* the chart to again calculate all offsets automatically.
|
|
350
|
+
*/
|
|
86
351
|
resetViewPortOffsets(): void;
|
|
352
|
+
/**
|
|
353
|
+
* ################ ################ ################ ################
|
|
354
|
+
*/
|
|
355
|
+
/** CODE BELOW IS GETTERS AND SETTERS */
|
|
356
|
+
/**
|
|
357
|
+
* Returns the range of the specified axis.
|
|
358
|
+
*
|
|
359
|
+
* @param axis
|
|
360
|
+
* @return
|
|
361
|
+
*/
|
|
87
362
|
protected getAxisRange(axis: any): number;
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
363
|
+
/**
|
|
364
|
+
* Returns a recyclable MPPointF instance.
|
|
365
|
+
* Returns the position (in pixels) the provided Entry has inside the chart
|
|
366
|
+
* view or null, if the provided Entry is null.
|
|
367
|
+
*
|
|
368
|
+
* @param e
|
|
369
|
+
* @return
|
|
370
|
+
*/
|
|
371
|
+
getPosition(e: U, axis: any): {
|
|
372
|
+
x: number;
|
|
373
|
+
y: number;
|
|
374
|
+
};
|
|
375
|
+
/**
|
|
376
|
+
* Set this to true to allow highlighting per dragging over the chart
|
|
377
|
+
* surface when it is fully zoomed out. Default: true
|
|
378
|
+
*
|
|
379
|
+
* @param enabled
|
|
380
|
+
*/
|
|
381
|
+
set highlightPerDragEnabled(enabled: boolean);
|
|
382
|
+
get highlightPerDragEnabled(): boolean;
|
|
383
|
+
/**
|
|
384
|
+
* Sets the color for the background of the chart-drawing area (everything
|
|
385
|
+
* behind the grid lines).
|
|
386
|
+
*
|
|
387
|
+
* @param color
|
|
388
|
+
*/
|
|
389
|
+
set gridBackgroundColor(color: any);
|
|
390
|
+
/**
|
|
391
|
+
* Set this to true to enable dragging (moving the chart with the finger)
|
|
392
|
+
* for the chart (this does not effect scaling).
|
|
393
|
+
*
|
|
394
|
+
* @param enabled
|
|
395
|
+
*/
|
|
396
|
+
set dragEnabled(enabled: boolean);
|
|
397
|
+
/**
|
|
398
|
+
* Returns true if dragging is enabled for the chart, false if not.
|
|
399
|
+
*/
|
|
400
|
+
get dragEnabled(): boolean;
|
|
401
|
+
/**
|
|
402
|
+
* Set this to true to enable scaling (zooming in and out by gesture) for
|
|
403
|
+
* the chart (this does not effect dragging) on both X- and Y-Axis.
|
|
404
|
+
*
|
|
405
|
+
* @param enabled
|
|
406
|
+
*/
|
|
407
|
+
set scaleEnabled(enabled: any);
|
|
408
|
+
set scaleXEnabled(enabled: boolean);
|
|
409
|
+
get scaleXEnabled(): boolean;
|
|
410
|
+
set scaleYEnabled(enabled: boolean);
|
|
411
|
+
get scaleYEnabled(): boolean;
|
|
412
|
+
/**
|
|
413
|
+
* Set this to true to enable zooming in by double-tap on the chart.
|
|
414
|
+
* Default: enabled
|
|
415
|
+
*
|
|
416
|
+
* @param enabled
|
|
417
|
+
*/
|
|
418
|
+
set doubleTapToZoomEnabled(enabled: boolean);
|
|
419
|
+
/**
|
|
420
|
+
* Returns true if zooming via double-tap is enabled false if not.
|
|
421
|
+
*/
|
|
422
|
+
get doubleTapToZoomEnabled(): boolean;
|
|
423
|
+
set highlightPerTapEnabled(enabled: boolean);
|
|
424
|
+
get highlightPerTapEnabled(): boolean;
|
|
425
|
+
/**
|
|
426
|
+
* wheter to highlight drawing will be clipped to contentRect,
|
|
427
|
+
* otherwise they can bleed outside the content rect.
|
|
428
|
+
*/
|
|
115
429
|
clipHighlightToContent: boolean;
|
|
116
|
-
|
|
117
|
-
|
|
430
|
+
/**
|
|
431
|
+
* Sets the width of the border lines in dp.
|
|
432
|
+
*
|
|
433
|
+
* @param width
|
|
434
|
+
*/
|
|
118
435
|
setBorderWidth(width: any): void;
|
|
436
|
+
/**
|
|
437
|
+
* Sets the color of the chart border lines.
|
|
438
|
+
*
|
|
439
|
+
* @param color
|
|
440
|
+
*/
|
|
119
441
|
setBorderColor(color: any): void;
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
442
|
+
/**
|
|
443
|
+
* Returns a recyclable MPPointD instance
|
|
444
|
+
* Returns the x and y values in the chart at the given touch point
|
|
445
|
+
* (encapsulated in a MPPointD). This method transforms pixel coordinates to
|
|
446
|
+
* coordinates / values in the chart. This is the opposite method to
|
|
447
|
+
* getPixelForValues(...).
|
|
448
|
+
*
|
|
449
|
+
* @param x
|
|
450
|
+
* @param y
|
|
451
|
+
* @return
|
|
452
|
+
*/
|
|
124
453
|
getValuesByTouchPoint(x: any, y: any, axis: any): any;
|
|
454
|
+
/**
|
|
455
|
+
* Returns a recyclable MPPointD instance
|
|
456
|
+
* Transforms the given chart values into pixels. This is the opposite
|
|
457
|
+
* method to getValuesByTouchPoint(...).
|
|
458
|
+
*
|
|
459
|
+
* @param x
|
|
460
|
+
* @param y
|
|
461
|
+
* @return
|
|
462
|
+
*/
|
|
125
463
|
getPixelForValues(x: any, y: any, axis: any): {
|
|
126
464
|
x: number;
|
|
127
465
|
y: number;
|
|
128
466
|
};
|
|
467
|
+
/**
|
|
468
|
+
* Returns a recyclable MPPointD instance
|
|
469
|
+
* Transforms the given chart values into pixels. This is the opposite
|
|
470
|
+
* method to getValuesByTouchPoint(...).
|
|
471
|
+
*
|
|
472
|
+
* @param set
|
|
473
|
+
* @param entry
|
|
474
|
+
* @param entry
|
|
475
|
+
* @return
|
|
476
|
+
*/
|
|
477
|
+
getPixelForEntry(set: IDataSet<Entry>, entry: Entry, index: any): {
|
|
478
|
+
x: number;
|
|
479
|
+
y: number;
|
|
480
|
+
};
|
|
481
|
+
/**
|
|
482
|
+
* returns the Entry object displayed at the touched position of the chart
|
|
483
|
+
*
|
|
484
|
+
* @param x
|
|
485
|
+
* @param y
|
|
486
|
+
* @return
|
|
487
|
+
*/
|
|
129
488
|
getEntryByTouchPoint(x: any, y: any): Entry;
|
|
489
|
+
/**
|
|
490
|
+
* returns the DataSet object displayed at the touched position of the chart
|
|
491
|
+
*
|
|
492
|
+
* @param x
|
|
493
|
+
* @param y
|
|
494
|
+
* @return
|
|
495
|
+
*/
|
|
130
496
|
getDataSetByTouchPoint(x: any, y: any): D;
|
|
497
|
+
/**
|
|
498
|
+
* buffer for storing lowest visible x point
|
|
499
|
+
*/
|
|
131
500
|
protected posForGetLowestVisibleX: {
|
|
132
501
|
x: number;
|
|
133
502
|
y: number;
|
|
134
503
|
};
|
|
135
|
-
|
|
504
|
+
/**
|
|
505
|
+
* Returns the lowest x-index (value on the x-axis) that is still visible on
|
|
506
|
+
* the chart.
|
|
507
|
+
*/
|
|
508
|
+
get lowestVisibleX(): number;
|
|
509
|
+
/**
|
|
510
|
+
* buffer for storing highest visible x point
|
|
511
|
+
*/
|
|
136
512
|
protected posForGetHighestVisibleX: {
|
|
137
513
|
x: number;
|
|
138
514
|
y: number;
|
|
139
515
|
};
|
|
140
|
-
|
|
516
|
+
/**
|
|
517
|
+
* Returns the highest x-index (value on the x-axis) that is still visible
|
|
518
|
+
* on the chart.
|
|
519
|
+
*/
|
|
520
|
+
get highestVisibleX(): number;
|
|
521
|
+
/**
|
|
522
|
+
* Returns the range visible on the x-axis.
|
|
523
|
+
*/
|
|
141
524
|
getVisibleXRange(): number;
|
|
525
|
+
/**
|
|
526
|
+
* returns the current x-scale factor
|
|
527
|
+
*/
|
|
142
528
|
getScaleX(): number;
|
|
529
|
+
/**
|
|
530
|
+
* returns the current y-scale factor
|
|
531
|
+
*/
|
|
143
532
|
getScaleY(): number;
|
|
533
|
+
/**
|
|
534
|
+
* if the chart is fully zoomed out, return true
|
|
535
|
+
*/
|
|
144
536
|
isFullyZoomedOut(): boolean;
|
|
537
|
+
/**
|
|
538
|
+
* Returns the left y-axis object. In the horizontal bar-chart, this is the
|
|
539
|
+
* top axis.
|
|
540
|
+
*/
|
|
541
|
+
get leftAxis(): YAxis;
|
|
542
|
+
/**
|
|
543
|
+
* @deprecated use leftAxis
|
|
544
|
+
*/
|
|
145
545
|
get axisLeft(): YAxis;
|
|
546
|
+
/**
|
|
547
|
+
* Returns the right y-axis object. In the horizontal bar-chart, this is the
|
|
548
|
+
* bottom axis.
|
|
549
|
+
*/
|
|
550
|
+
get rightAxis(): YAxis;
|
|
551
|
+
/**
|
|
552
|
+
* @deprecated use rightAxis
|
|
553
|
+
*/
|
|
146
554
|
get axisRight(): YAxis;
|
|
147
|
-
|
|
148
|
-
|
|
555
|
+
/**
|
|
556
|
+
* Returns the y-axis object to the corresponding AxisDependency. In the
|
|
557
|
+
* horizontal bar-chart, LEFT == top, RIGHT == BOTTOM
|
|
558
|
+
*
|
|
559
|
+
* @param axis
|
|
560
|
+
* @return
|
|
561
|
+
*/
|
|
149
562
|
getAxis(axis: any): YAxis;
|
|
150
563
|
isInverted(axis: any): boolean;
|
|
151
|
-
|
|
152
|
-
|
|
564
|
+
/**
|
|
565
|
+
* Set an offset in dp that allows the user to drag the chart over it's
|
|
566
|
+
* bounds on the x-axis.
|
|
567
|
+
*
|
|
568
|
+
* @param offset
|
|
569
|
+
*/
|
|
153
570
|
setDragOffsetX(offset: any): void;
|
|
571
|
+
/**
|
|
572
|
+
* Set an offset in dp that allows the user to drag the chart over it's
|
|
573
|
+
* bounds on the y-axis.
|
|
574
|
+
*
|
|
575
|
+
* @param offset
|
|
576
|
+
*/
|
|
154
577
|
setDragOffsetY(offset: any): void;
|
|
578
|
+
/**
|
|
579
|
+
* Returns true if both drag offsets (x and y) are zero or smaller.
|
|
580
|
+
*/
|
|
155
581
|
hasNoDragOffset(): boolean;
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
getYChartMax(): number;
|
|
163
|
-
getYChartMin(): number;
|
|
164
|
-
isAnyAxisInverted(): boolean;
|
|
165
|
-
setAutoScaleMinMaxEnabled(enabled: any): void;
|
|
166
|
-
isAutoScaleMinMaxEnabled(): boolean;
|
|
582
|
+
get yChartMax(): number;
|
|
583
|
+
get yChartMin(): number;
|
|
584
|
+
/**
|
|
585
|
+
* Returns true if either the left or the right or both axes are inverted.
|
|
586
|
+
*/
|
|
587
|
+
get anyAxisInverted(): boolean;
|
|
167
588
|
protected mOnSizeChangedBuffer: import("@nativescript-community/arraybuffers").TypedArray;
|
|
168
589
|
onSizeChanged(w: number, h: number, oldw: number, oldh: number): void;
|
|
169
590
|
addEventListener(arg: string | GestureTypes, callback: (data: EventData) => void, thisArg?: any): void;
|