scichart 2.1.2301 → 2.2.2389
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/Builder/buildAxis.d.ts +7 -0
- package/Builder/buildAxis.js +6 -0
- package/Builder/buildDataSeries.d.ts +19 -1
- package/Builder/buildDataSeries.js +22 -1
- package/Builder/buildModifiers.d.ts +2 -1
- package/Builder/buildSeries.d.ts +7 -2
- package/Builder/buildSeries.js +5 -1
- package/Charting/ChartModifiers/CursorModifier.d.ts +5 -0
- package/Charting/ChartModifiers/CursorModifier.js +15 -10
- package/Charting/ChartModifiers/LegendModifier.d.ts +31 -0
- package/Charting/ChartModifiers/LegendModifier.js +22 -0
- package/Charting/ChartModifiers/ModifierMouseArgs.d.ts +2 -2
- package/Charting/ChartModifiers/ModifierMouseArgs.js +4 -2
- package/Charting/ChartModifiers/RolloverModifier.d.ts +10 -0
- package/Charting/ChartModifiers/RolloverModifier.js +76 -19
- package/Charting/Drawing/WebGlRenderContext2D.js +26 -42
- package/Charting/LayoutManager/LayoutManager.js +6 -1
- package/Charting/Model/BaseHeatmapDataSeries.d.ts +1 -0
- package/Charting/Model/BaseHeatmapDataSeries.js +5 -2
- package/Charting/Model/ChartData/HlcSeriesInfo.d.ts +12 -0
- package/Charting/Model/ChartData/HlcSeriesInfo.js +52 -0
- package/Charting/Model/Filters/HlcCustomFilter.d.ts +41 -0
- package/Charting/Model/Filters/HlcCustomFilter.js +119 -0
- package/Charting/Model/Filters/HlcFilterBase.d.ts +30 -0
- package/Charting/Model/Filters/HlcFilterBase.js +141 -0
- package/Charting/Model/Filters/HlcScaleOffsetFilter.d.ts +18 -0
- package/Charting/Model/Filters/HlcScaleOffsetFilter.js +86 -0
- package/Charting/Model/Filters/XyFilterBase.d.ts +2 -0
- package/Charting/Model/Filters/XyFilterBase.js +6 -0
- package/Charting/Model/Filters/XyyFilterBase.js +9 -0
- package/Charting/Model/Filters/XyzFilterBase.js +12 -3
- package/Charting/Model/HlcDataSeries.d.ts +189 -0
- package/Charting/Model/HlcDataSeries.js +557 -0
- package/Charting/Model/IDataSeries.d.ts +5 -1
- package/Charting/Model/IDataSeries.js +4 -0
- package/Charting/Model/PointSeries/BasePointSeriesWrapped.d.ts +1 -1
- package/Charting/Model/PointSeries/BasePointSeriesWrapped.js +2 -2
- package/Charting/Model/PointSeries/HlcPointSeriesWrapped.d.ts +10 -0
- package/Charting/Model/PointSeries/HlcPointSeriesWrapped.js +31 -0
- package/Charting/Model/PointSeries/IPointSeries.d.ts +5 -0
- package/Charting/Model/PointSeries/XyyPointSeriesWrapped.d.ts +1 -1
- package/Charting/Model/PointSeries/XyyPointSeriesWrapped.js +3 -3
- package/Charting/Numerics/CoordinateCalculators/LogarithmicCoordinateCalculator.d.ts +2 -2
- package/Charting/Numerics/CoordinateCalculators/LogarithmicCoordinateCalculator.js +15 -6
- package/Charting/Services/SciChartRenderer.d.ts +1 -0
- package/Charting/Services/SciChartRenderer.js +6 -0
- package/Charting/Visuals/Annotations/AnnotationBase.d.ts +6 -1
- package/Charting/Visuals/Annotations/AnnotationBase.js +23 -2
- package/Charting/Visuals/Annotations/CursorTooltipSvgAnnotation.d.ts +6 -0
- package/Charting/Visuals/Annotations/CursorTooltipSvgAnnotation.js +46 -5
- package/Charting/Visuals/Annotations/CustomAnnotation.d.ts +3 -1
- package/Charting/Visuals/Annotations/CustomAnnotation.js +14 -3
- package/Charting/Visuals/Annotations/HorizontalLineAnnotation.d.ts +4 -0
- package/Charting/Visuals/Annotations/HorizontalLineAnnotation.js +3 -2
- package/Charting/Visuals/Annotations/RolloverLegendSvgAnnotation.d.ts +1 -1
- package/Charting/Visuals/Annotations/RolloverLegendSvgAnnotation.js +13 -3
- package/Charting/Visuals/Annotations/RolloverTooltipSvgAnnotation.d.ts +13 -0
- package/Charting/Visuals/Annotations/RolloverTooltipSvgAnnotation.js +71 -14
- package/Charting/Visuals/Annotations/VerticalLineAnnotation.d.ts +2 -0
- package/Charting/Visuals/Annotations/VerticalLineAnnotation.js +3 -2
- package/Charting/Visuals/Annotations/constants.d.ts +2 -1
- package/Charting/Visuals/Annotations/constants.js +1 -0
- package/Charting/Visuals/Axis/AxisBase2D.d.ts +11 -1
- package/Charting/Visuals/Axis/AxisBase2D.js +75 -17
- package/Charting/Visuals/Axis/AxisCore.d.ts +4 -0
- package/Charting/Visuals/Axis/AxisCore.js +6 -0
- package/Charting/Visuals/Axis/AxisRenderer.js +6 -10
- package/Charting/Visuals/Axis/DateTimeNumericAxis.d.ts +11 -0
- package/Charting/Visuals/Axis/DateTimeNumericAxis.js +36 -0
- package/Charting/Visuals/Axis/DeltaCalculator/DateTimeDeltaCalculator.d.ts +28 -0
- package/Charting/Visuals/Axis/DeltaCalculator/DateTimeDeltaCalculator.js +125 -0
- package/Charting/Visuals/Axis/LabelProvider/PieLabelProvider.d.ts +34 -0
- package/Charting/Visuals/Axis/LabelProvider/PieLabelProvider.js +82 -0
- package/Charting/Visuals/Axis/LabelProvider/SmartDateLabelProvider.d.ts +2 -2
- package/Charting/Visuals/Axis/LabelProvider/SmartDateLabelProvider.js +39 -6
- package/Charting/Visuals/Axis/LogarithmicAxis.d.ts +1 -0
- package/Charting/Visuals/Axis/LogarithmicAxis.js +5 -3
- package/Charting/Visuals/Helpers/NativeObject.d.ts +13 -0
- package/Charting/Visuals/Helpers/NativeObject.js +101 -0
- package/Charting/Visuals/Helpers/createNativeRect.d.ts +2 -2
- package/Charting/Visuals/Helpers/createNativeRect.js +3 -1
- package/Charting/Visuals/Helpers/drawBorder.js +2 -2
- package/Charting/Visuals/Helpers/drawLabel.d.ts +3 -3
- package/Charting/Visuals/Helpers/drawLabel.js +38 -18
- package/Charting/Visuals/I2DSurfaceOptions.d.ts +6 -0
- package/Charting/Visuals/Legend/SciChartLegend.d.ts +4 -0
- package/Charting/Visuals/Legend/SciChartLegend.js +8 -2
- package/Charting/Visuals/Legend/SciChartLegendBase.d.ts +1 -0
- package/Charting/Visuals/Legend/SciChartLegendBase.js +4 -2
- package/Charting/Visuals/Legend/SciChartPieLegend.js +1 -1
- package/Charting/Visuals/RenderableSeries/BaseRenderableSeries.d.ts +24 -8
- package/Charting/Visuals/RenderableSeries/BaseRenderableSeries.js +109 -31
- package/Charting/Visuals/RenderableSeries/BaseStackedCollection.d.ts +3 -0
- package/Charting/Visuals/RenderableSeries/BaseStackedCollection.js +8 -0
- package/Charting/Visuals/RenderableSeries/BaseStackedRenderableSeries.d.ts +17 -166
- package/Charting/Visuals/RenderableSeries/BaseStackedRenderableSeries.js +35 -328
- package/Charting/Visuals/RenderableSeries/DrawingProviders/BandSeriesDrawingProvider.d.ts +5 -2
- package/Charting/Visuals/RenderableSeries/DrawingProviders/BandSeriesDrawingProvider.js +5 -3
- package/Charting/Visuals/RenderableSeries/DrawingProviders/BaseSeriesDrawingProvider.js +14 -11
- package/Charting/Visuals/RenderableSeries/DrawingProviders/ErrorSeriesDrawingProvider.d.ts +46 -0
- package/Charting/Visuals/RenderableSeries/DrawingProviders/ErrorSeriesDrawingProvider.js +252 -0
- package/Charting/Visuals/RenderableSeries/FastErrorBarsRenderableSeries.d.ts +188 -0
- package/Charting/Visuals/RenderableSeries/FastErrorBarsRenderableSeries.js +357 -0
- package/Charting/Visuals/RenderableSeries/FastImpulseRenderableSeries.js +3 -10
- package/Charting/Visuals/RenderableSeries/HitTest/ErrorSeriesHitTestProvider.d.ts +20 -0
- package/Charting/Visuals/RenderableSeries/HitTest/ErrorSeriesHitTestProvider.js +120 -0
- package/Charting/Visuals/RenderableSeries/HitTest/hitTestHelpers.d.ts +6 -0
- package/Charting/Visuals/RenderableSeries/HitTest/hitTestHelpers.js +36 -0
- package/Charting/Visuals/RenderableSeries/IBaseRenderableSeriesOptions.d.ts +8 -0
- package/Charting/Visuals/RenderableSeries/IRenderableSeries.d.ts +6 -0
- package/Charting/Visuals/RenderableSeries/SeriesVisibleChangedArgs.d.ts +6 -0
- package/Charting/Visuals/RenderableSeries/SeriesVisibleChangedArgs.js +11 -0
- package/Charting/Visuals/RenderableSeries/StackedColumnCollection.js +1 -2
- package/Charting/Visuals/RenderableSeries/StackedColumnRenderableSeries.d.ts +22 -0
- package/Charting/Visuals/RenderableSeries/StackedColumnRenderableSeries.js +38 -1
- package/Charting/Visuals/RenderableSeries/StackedMountainCollection.d.ts +2 -2
- package/Charting/Visuals/RenderableSeries/StackedMountainCollection.js +26 -45
- package/Charting/Visuals/RenderableSeries/StackedMountainRenderableSeries.d.ts +77 -18
- package/Charting/Visuals/RenderableSeries/StackedMountainRenderableSeries.js +139 -42
- package/Charting/Visuals/RenderableSeries/XyScatterRenderableSeries.d.ts +5 -0
- package/Charting/Visuals/RenderableSeries/XyScatterRenderableSeries.js +21 -1
- package/Charting/Visuals/RenderableSeries/constants.d.ts +7 -0
- package/Charting/Visuals/RenderableSeries/constants.js +7 -0
- package/Charting/Visuals/SciChartPieSurface/IPieSurfaceOptions.d.ts +25 -2
- package/Charting/Visuals/SciChartPieSurface/PieSegment/IPieSegment.d.ts +9 -1
- package/Charting/Visuals/SciChartPieSurface/PieSegment/PieSegment.d.ts +128 -2
- package/Charting/Visuals/SciChartPieSurface/PieSegment/PieSegment.js +202 -21
- package/Charting/Visuals/SciChartPieSurface/PieSegment/constants.d.ts +6 -1
- package/Charting/Visuals/SciChartPieSurface/PieSegment/constants.js +5 -0
- package/Charting/Visuals/SciChartPieSurface/SciChartPieSurface.d.ts +77 -3
- package/Charting/Visuals/SciChartPieSurface/SciChartPieSurface.js +373 -81
- package/Charting/Visuals/SciChartPieSurface/constants.d.ts +7 -1
- package/Charting/Visuals/SciChartPieSurface/constants.js +6 -0
- package/Charting/Visuals/SciChartSurface.d.ts +13 -2
- package/Charting/Visuals/SciChartSurface.js +39 -3
- package/Charting/Visuals/createMaster.js +17 -13
- package/Charting/Visuals/createSingle.js +5 -3
- package/Charting/Visuals/licenseManager2D.d.ts +6 -0
- package/Charting/Visuals/licenseManager2D.js +98 -9
- package/Charting/Visuals/licenseManager2dState.d.ts +11 -0
- package/Charting/Visuals/licenseManager2dState.js +37 -1
- package/Charting/Visuals/loader.js +4 -1
- package/Charting/Visuals/sciChartInitCommon.d.ts +2 -2
- package/Charting/Visuals/sciChartInitCommon.js +13 -9
- package/Charting3D/Visuals/Primitives/ScatterPointsSceneEntity.js +6 -2
- package/Charting3D/Visuals/SciChart3DRenderer.js +1 -1
- package/Charting3D/Visuals/SciChart3DSurface.d.ts +8 -3
- package/Charting3D/Visuals/SciChart3DSurface.js +12 -3
- package/Charting3D/Visuals/createMaster3d.js +20 -14
- package/Charting3D/Visuals/createSingle3d.js +3 -4
- package/Charting3D/Visuals/licenseManager3D.js +3 -1
- package/Core/BuildStamp.d.ts +1 -1
- package/Core/BuildStamp.js +2 -2
- package/Core/Telemetry.d.ts +7 -0
- package/Core/Telemetry.js +109 -0
- package/Core/storage/localStorageApi.d.ts +4 -0
- package/Core/storage/localStorageApi.js +12 -0
- package/README.md +49 -13
- package/_wasm/scichart.browser.js +1 -1
- package/_wasm/scichart2d.js +95 -95
- package/_wasm/scichart2d.wasm +0 -0
- package/_wasm/scichart3d.js +97 -97
- package/_wasm/scichart3d.wasm +0 -0
- package/package.json +1 -1
- package/types/AxisType.d.ts +5 -1
- package/types/AxisType.js +4 -0
- package/types/Color.d.ts +1 -0
- package/types/Color.js +1 -0
- package/types/DataFilterType.d.ts +1 -0
- package/types/DataFilterType.js +1 -0
- package/types/DataPointWidthMode.d.ts +13 -0
- package/types/DataPointWidthMode.js +17 -0
- package/types/ErrorDirection.d.ts +13 -0
- package/types/ErrorDirection.js +17 -0
- package/types/ErrorMode.d.ts +17 -0
- package/types/ErrorMode.js +21 -0
- package/types/LabelPlacement.d.ts +8 -0
- package/types/LabelPlacement.js +11 -1
- package/types/LabelProviderType.d.ts +5 -1
- package/types/LabelProviderType.js +4 -0
- package/types/SeriesType.d.ts +3 -1
- package/types/SeriesType.js +2 -0
- package/types/TSciChart.d.ts +8 -2
- package/types/TSciChart3D.d.ts +5 -2
- package/types/TSciChartSurfaceCanvases.d.ts +1 -0
- package/utils/date.d.ts +1 -0
- package/utils/date.js +15 -1
- package/utils/guid.d.ts +6 -0
- package/utils/guid.js +17 -1
|
@@ -5,5 +5,10 @@ export declare enum PROPERTY {
|
|
|
5
5
|
IS_SELECTED = "IS_SELECTED",
|
|
6
6
|
PERCENTAGE = "PERCENTAGE",
|
|
7
7
|
TEXT = "TEXT",
|
|
8
|
-
VALUE = "VALUE"
|
|
8
|
+
VALUE = "VALUE",
|
|
9
|
+
SHIFT = "SHIFT",
|
|
10
|
+
LABEL_PROVIDER = "LABEL_PROVIDER",
|
|
11
|
+
LABEL_STYLE = "LABEL_STYLE",
|
|
12
|
+
LABEL_OFFSET = "LABEL_OFFSET",
|
|
13
|
+
RADIUS_ADJUSTMENT = "RADIUS_ADJUSTMENT"
|
|
9
14
|
}
|
|
@@ -10,4 +10,9 @@ var PROPERTY;
|
|
|
10
10
|
PROPERTY["PERCENTAGE"] = "PERCENTAGE";
|
|
11
11
|
PROPERTY["TEXT"] = "TEXT";
|
|
12
12
|
PROPERTY["VALUE"] = "VALUE";
|
|
13
|
+
PROPERTY["SHIFT"] = "SHIFT";
|
|
14
|
+
PROPERTY["LABEL_PROVIDER"] = "LABEL_PROVIDER";
|
|
15
|
+
PROPERTY["LABEL_STYLE"] = "LABEL_STYLE";
|
|
16
|
+
PROPERTY["LABEL_OFFSET"] = "LABEL_OFFSET";
|
|
17
|
+
PROPERTY["RADIUS_ADJUSTMENT"] = "RADIUS_ADJUSTMENT";
|
|
13
18
|
})(PROPERTY = exports.PROPERTY || (exports.PROPERTY = {}));
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import { ISciChartPieDefinition } from "../../../Builder/buildSurface";
|
|
2
2
|
import { IDeletable } from "../../../Core/IDeletable";
|
|
3
3
|
import { ObservableArray } from "../../../Core/ObservableArray";
|
|
4
|
+
import { Thickness } from "../../../Core/Thickness";
|
|
4
5
|
import { ESciChartSurfaceType } from "../../../types/SciChartSurfaceType";
|
|
6
|
+
import { TBorder } from "../../../types/TBorder";
|
|
5
7
|
import { TSciChartSurfaceCanvases } from "../../../types/TSciChartSurfaceCanvases";
|
|
6
8
|
import { IThemeProvider } from "../../Themes/IThemeProvider";
|
|
9
|
+
import { TTextStyle } from "../Axis/AxisCore";
|
|
10
|
+
import { PieLabelProvider } from "../Axis/LabelProvider/PieLabelProvider";
|
|
7
11
|
import { IEventSubscriptionItem } from "../Legend/SciChartLegendBase";
|
|
8
12
|
import { SciChartPieLegend } from "../Legend/SciChartPieLegend";
|
|
9
13
|
import { ISciChartSurfaceBase } from "../SciChartSurfaceBase";
|
|
@@ -23,6 +27,10 @@ export declare enum EPieType {
|
|
|
23
27
|
Pie = "Pie",
|
|
24
28
|
Donut = "Donut"
|
|
25
29
|
}
|
|
30
|
+
export declare enum EPieValueMode {
|
|
31
|
+
Percentage = 0,
|
|
32
|
+
Raw = 1
|
|
33
|
+
}
|
|
26
34
|
/**
|
|
27
35
|
* @summary The {@link SciChartPieSurface} is the root Pie and Donut Chart control in SciChart's High Performance Real-time
|
|
28
36
|
* {@link https://www.scichart.com/javascript-chart-features | JavaScript Chart Library}
|
|
@@ -61,6 +69,7 @@ export declare class SciChartPieSurface implements ISciChartSurfaceBase {
|
|
|
61
69
|
readonly domSvgAdornerLayer: SVGSVGElement;
|
|
62
70
|
readonly domDivContainer: HTMLDivElement;
|
|
63
71
|
animate: boolean;
|
|
72
|
+
animationFrames: number;
|
|
64
73
|
/**
|
|
65
74
|
* An optional legend of type {@link SciChartPieLegend} which may be added to the Pie chart
|
|
66
75
|
*/
|
|
@@ -68,10 +77,12 @@ export declare class SciChartPieSurface implements ISciChartSurfaceBase {
|
|
|
68
77
|
onCreatedName: string;
|
|
69
78
|
protected widthAspect: number;
|
|
70
79
|
protected heightAspect: number;
|
|
80
|
+
protected labelProviderProperty: PieLabelProvider;
|
|
71
81
|
private pieTypeProperty;
|
|
72
82
|
private holeRadiusProperty;
|
|
73
83
|
private holeRadiusSizingModeProperty;
|
|
74
84
|
private seriesSpacingProperty;
|
|
85
|
+
private labelRadiusProperty;
|
|
75
86
|
private svg;
|
|
76
87
|
private titleDivs;
|
|
77
88
|
private viewRect;
|
|
@@ -80,7 +91,27 @@ export declare class SciChartPieSurface implements ISciChartSurfaceBase {
|
|
|
80
91
|
private themeProviderProperty;
|
|
81
92
|
private previousThemeProviderProperty;
|
|
82
93
|
private deletables;
|
|
94
|
+
private paddingProperty?;
|
|
95
|
+
private canvasBorderProperty?;
|
|
96
|
+
private valueModeProperty;
|
|
97
|
+
private labelStyleProperty;
|
|
83
98
|
constructor(canvases?: TSciChartSurfaceCanvases, options?: IPieSurfaceOptions);
|
|
99
|
+
/**
|
|
100
|
+
* Gets or sets a {@link LabelProvider} - a class which is responsible for formatting axis labels and cursor labels from numeric values
|
|
101
|
+
*/
|
|
102
|
+
get labelProvider(): PieLabelProvider;
|
|
103
|
+
/**
|
|
104
|
+
* Gets or sets a {@link LabelProvider} - a class which is responsible for formatting axis labels and cursor labels from numeric values
|
|
105
|
+
*/
|
|
106
|
+
set labelProvider(labelProvider: PieLabelProvider);
|
|
107
|
+
/**
|
|
108
|
+
* Gets or sets a {@link TTextStyle} object for styling labels
|
|
109
|
+
*/
|
|
110
|
+
get labelStyle(): TTextStyle;
|
|
111
|
+
/**
|
|
112
|
+
* Gets or sets a {@link TTextStyle} object for styling labels
|
|
113
|
+
*/
|
|
114
|
+
set labelStyle(textStyle: TTextStyle);
|
|
84
115
|
/**
|
|
85
116
|
* @inheritDoc
|
|
86
117
|
*/
|
|
@@ -97,7 +128,7 @@ export declare class SciChartPieSurface implements ISciChartSurfaceBase {
|
|
|
97
128
|
* Call invalidateElement() to trigger a redraw of the {@link SciChartPieSurface}. SciChart's rendering
|
|
98
129
|
* engine will schedule a redraw a the next time the renderer is free.
|
|
99
130
|
*/
|
|
100
|
-
invalidateElement(): void;
|
|
131
|
+
invalidateElement(propertyName?: string): void;
|
|
101
132
|
/**
|
|
102
133
|
* Called internally - Updates and draws the Pie Chart
|
|
103
134
|
*/
|
|
@@ -105,7 +136,7 @@ export declare class SciChartPieSurface implements ISciChartSurfaceBase {
|
|
|
105
136
|
/**
|
|
106
137
|
* @inheritDoc
|
|
107
138
|
*/
|
|
108
|
-
delete(): void;
|
|
139
|
+
delete(isAnimationProgress?: boolean): void;
|
|
109
140
|
/**
|
|
110
141
|
* @inheritDoc
|
|
111
142
|
*/
|
|
@@ -150,6 +181,39 @@ export declare class SciChartPieSurface implements ISciChartSurfaceBase {
|
|
|
150
181
|
* which sets the size of a Donut Chart hole
|
|
151
182
|
*/
|
|
152
183
|
set holeRadiusSizingMode(holeRadiusSizingMode: ESizingMode);
|
|
184
|
+
/**
|
|
185
|
+
* Gets or sets padding
|
|
186
|
+
*/
|
|
187
|
+
get padding(): Thickness;
|
|
188
|
+
/**
|
|
189
|
+
* Gets or sets padding
|
|
190
|
+
*/
|
|
191
|
+
set padding(value: Thickness);
|
|
192
|
+
/**
|
|
193
|
+
* Gets or sets canvas border
|
|
194
|
+
*/
|
|
195
|
+
get canvasBorder(): TBorder;
|
|
196
|
+
/**
|
|
197
|
+
* Gets or sets canvas border
|
|
198
|
+
*/
|
|
199
|
+
set canvasBorder(value: TBorder);
|
|
200
|
+
get seriesSpacing(): number;
|
|
201
|
+
set seriesSpacing(value: number);
|
|
202
|
+
/** Whether to show labels as percentages, or raw values. Default to percentages */
|
|
203
|
+
get valueMode(): EPieValueMode;
|
|
204
|
+
/** Whether to show labels as percentages, or raw values. Default to percentages */
|
|
205
|
+
set valueMode(value: EPieValueMode);
|
|
206
|
+
/**
|
|
207
|
+
* Use this to adjust the position of the labels. 1 is the default. Larger values will shift the labels outwards.
|
|
208
|
+
* For Pie charts, 1.7 will place the labels outside the pie
|
|
209
|
+
* If you want more detailed control you can override calcTitlePosition.
|
|
210
|
+
*/
|
|
211
|
+
get labelRadiusAdjustment(): number;
|
|
212
|
+
/**
|
|
213
|
+
* Use this to adjust the position of the labels. 1 is the default. Larger values will shift the labels outwards.
|
|
214
|
+
* If you want more detailed control you can override calcTitlePosition.
|
|
215
|
+
*/
|
|
216
|
+
set labelRadiusAdjustment(value: number);
|
|
153
217
|
/**
|
|
154
218
|
* Convert the surface to a {@link TSurfaceDefinition}
|
|
155
219
|
* @param excludedata If false, segments will be included in the json
|
|
@@ -158,6 +222,11 @@ export declare class SciChartPieSurface implements ISciChartSurfaceBase {
|
|
|
158
222
|
type: ESciChartSurfaceType;
|
|
159
223
|
options: ISciChartPieDefinition;
|
|
160
224
|
};
|
|
225
|
+
/** The method used to calculate the label position for each segment */
|
|
226
|
+
calcTitlePosition(x: number, y: number, outerRadius: number, innerRadius: number, a1: number, a2: number, delta: number, divWidth: number, divHeight: number): {
|
|
227
|
+
left: number;
|
|
228
|
+
top: number;
|
|
229
|
+
};
|
|
161
230
|
/**
|
|
162
231
|
* Changes the size of the DOM element where the {@link SciChartSurfaceBase} resides.
|
|
163
232
|
* @param width
|
|
@@ -168,14 +237,19 @@ export declare class SciChartPieSurface implements ISciChartSurfaceBase {
|
|
|
168
237
|
private isValidToDraw;
|
|
169
238
|
private detachPieSegment;
|
|
170
239
|
private attachPieSegment;
|
|
240
|
+
private updateLegendMargin;
|
|
241
|
+
private calculateViewRectWidth;
|
|
242
|
+
private calculateViewRectHeight;
|
|
171
243
|
private draw;
|
|
172
244
|
/**
|
|
173
245
|
* @description Draws pie chart itself
|
|
174
246
|
* @param animationProgress - Current progress from 0 to 1, is being used for sweep animation on start.
|
|
175
247
|
*/
|
|
176
248
|
private drawChart;
|
|
177
|
-
private
|
|
249
|
+
private adjustDomContainer;
|
|
250
|
+
private drawSegmentLabel;
|
|
178
251
|
private pieSegmentsTotalValue;
|
|
252
|
+
private pieSegmentsTotalOldValue;
|
|
179
253
|
private applySciChartBackground;
|
|
180
254
|
}
|
|
181
255
|
/** @ignore */
|