@mescius/wijmo.chart.analytics 5.20232.939
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/COMMERCIAL-LICENSE.html +485 -0
- package/README.md +363 -0
- package/es2015-commonjs.js +14 -0
- package/es2015-esm.js +14 -0
- package/es5-esm.js +14 -0
- package/index.d.ts +723 -0
- package/index.js +14 -0
- package/package.json +45 -0
package/index.d.ts
ADDED
|
@@ -0,0 +1,723 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
*
|
|
3
|
+
* Wijmo Library 5.20232.939
|
|
4
|
+
* https://developer.mescius.com/wijmo
|
|
5
|
+
*
|
|
6
|
+
* Copyright(c) MESCIUS inc. All rights reserved.
|
|
7
|
+
*
|
|
8
|
+
* Licensed under the End-User License Agreement For MESCIUS Wijmo Software.
|
|
9
|
+
* us.sales@mescius.com
|
|
10
|
+
* https://developer.mescius.com/wijmo/licensing
|
|
11
|
+
*
|
|
12
|
+
*/
|
|
13
|
+
/**
|
|
14
|
+
* {@module wijmo.chart.analytics}
|
|
15
|
+
* Defines classes that add analytics features to charts including {@link TrendLine},
|
|
16
|
+
* {@link MovingAverage} and {@link FunctionSeries}.
|
|
17
|
+
*/
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
*/
|
|
21
|
+
export declare var ___keepComment: any;
|
|
22
|
+
import { Rect, Size } from '@grapecity/wijmo';
|
|
23
|
+
import { SeriesBase, _HitTester, IRenderEngine, _IHitArea, FlexChartCore, _BarPlotter, _RectArea, _ISeries, _IAxis, Series } from '@grapecity/wijmo.chart';
|
|
24
|
+
/**
|
|
25
|
+
* Represents a Waterfall series of {@link FlexChart}.
|
|
26
|
+
*
|
|
27
|
+
* The {@link Waterfall} series is normally used to demonstrate how
|
|
28
|
+
* the starting position either increases or decreases through a
|
|
29
|
+
* series of changes.
|
|
30
|
+
*/
|
|
31
|
+
export declare class Waterfall extends SeriesBase {
|
|
32
|
+
static CSS_CONNECTOR_LINE_GROUP: string;
|
|
33
|
+
static CSS_CONNECTOR_LINE: string;
|
|
34
|
+
static CSS_ENDLABEL: string;
|
|
35
|
+
_barPlotter: _BarPlotter;
|
|
36
|
+
private _start;
|
|
37
|
+
private _startLabel;
|
|
38
|
+
private _relativeData;
|
|
39
|
+
private _connectorLines;
|
|
40
|
+
private _showTotal;
|
|
41
|
+
private _totalLabel;
|
|
42
|
+
private _styles;
|
|
43
|
+
private _wfstyle;
|
|
44
|
+
private _xValues;
|
|
45
|
+
private _getXValues;
|
|
46
|
+
private _yValues;
|
|
47
|
+
private _showIntermediateTotal;
|
|
48
|
+
private _intermediateTotalPositions;
|
|
49
|
+
private _intermediateTotalLabels;
|
|
50
|
+
private _intermediateTotalPos;
|
|
51
|
+
/**
|
|
52
|
+
* Initializes a new instance of the {@link Waterfall} class.
|
|
53
|
+
*
|
|
54
|
+
* @param options JavaScript object containing initialization data for the object.
|
|
55
|
+
*/
|
|
56
|
+
constructor(options?: any);
|
|
57
|
+
/**
|
|
58
|
+
* Gets or sets a value that determines whether the given data
|
|
59
|
+
* represents absolute or relative values (differences).
|
|
60
|
+
*/
|
|
61
|
+
relativeData: boolean;
|
|
62
|
+
/**
|
|
63
|
+
* Gets or sets a value that determines the value of the start bar.
|
|
64
|
+
* If start is null, the start bar will not be shown.
|
|
65
|
+
*/
|
|
66
|
+
start: number;
|
|
67
|
+
/**
|
|
68
|
+
* Gets or sets the label of the start bar.
|
|
69
|
+
*/
|
|
70
|
+
startLabel: string;
|
|
71
|
+
/**
|
|
72
|
+
* Gets or sets a value that determines whether to show
|
|
73
|
+
* the total bar at the end of the chart.
|
|
74
|
+
*/
|
|
75
|
+
showTotal: boolean;
|
|
76
|
+
/**
|
|
77
|
+
* Gets or sets the label of the total bar.
|
|
78
|
+
*/
|
|
79
|
+
totalLabel: string;
|
|
80
|
+
/**
|
|
81
|
+
* Gets or sets a value that determines whether to show intermediate
|
|
82
|
+
* total bars.
|
|
83
|
+
*
|
|
84
|
+
* This property works with {@link intermediateTotalPositions} and
|
|
85
|
+
* {@link intermediateTotalLabels} properties.
|
|
86
|
+
*/
|
|
87
|
+
showIntermediateTotal: boolean;
|
|
88
|
+
/**
|
|
89
|
+
* Gets or sets a value of the property that contains the index
|
|
90
|
+
* for positions of the intermediate total bars.
|
|
91
|
+
*
|
|
92
|
+
* This property works with the {@link showIntermediateTotal} and
|
|
93
|
+
* {@link intermediateTotalLabels} properties.
|
|
94
|
+
*/
|
|
95
|
+
intermediateTotalPositions: number[];
|
|
96
|
+
/**
|
|
97
|
+
* Gets or sets the name of the property that contains labels for
|
|
98
|
+
* the intermediate total bars. This should be an array or a string.
|
|
99
|
+
*
|
|
100
|
+
* This property works with the {@link showIntermediateTotal} and
|
|
101
|
+
* {@link intermediateTotalPositions} properties.
|
|
102
|
+
*/
|
|
103
|
+
intermediateTotalLabels: any;
|
|
104
|
+
/**
|
|
105
|
+
* Gets or sets a value that determines whether to show
|
|
106
|
+
* connector lines.
|
|
107
|
+
*/
|
|
108
|
+
connectorLines: boolean;
|
|
109
|
+
/**
|
|
110
|
+
* Gets or sets the Waterfall styles.
|
|
111
|
+
*
|
|
112
|
+
* The following styles are supported:
|
|
113
|
+
*
|
|
114
|
+
* <ol>
|
|
115
|
+
* <li><b>start</b>: Specifies the style of the start column.</li>
|
|
116
|
+
* <li><b>total</b>: Specifies the style of the total column.</li>
|
|
117
|
+
* <li><b>intermediateTotal</b>: Specifies the style of the intermediate total column.</li>
|
|
118
|
+
* <li><b>falling</b>: Specifies the style of the falling columns.</li>
|
|
119
|
+
* <li><b>rising</b>: Specifies the style of the rising columns.</li>
|
|
120
|
+
* <li><b>connectorLines</b>: Specifies the style of the connectorLines.</li>
|
|
121
|
+
* </ol>
|
|
122
|
+
*
|
|
123
|
+
* <pre>waterfall.styles = {
|
|
124
|
+
* start: { fill: 'blue', stroke: 'blue' },
|
|
125
|
+
* total: { fill: 'yellow', stroke: 'yellow' },
|
|
126
|
+
* falling: { fill: 'red', stroke: 'red' },
|
|
127
|
+
* rising: { fill: 'green', stroke: 'green' },
|
|
128
|
+
* connectorLines: { stroke: 'blue', 'stroke-dasharray': '10, 10' }
|
|
129
|
+
* }</pre>
|
|
130
|
+
*/
|
|
131
|
+
styles: any;
|
|
132
|
+
getValues(dim: number): number[];
|
|
133
|
+
legendItemLength(): number;
|
|
134
|
+
measureLegendItem(engine: IRenderEngine, index: number): Size;
|
|
135
|
+
drawLegendItem(engine: IRenderEngine, rect: Rect, index: number): void;
|
|
136
|
+
_clearValues(): void;
|
|
137
|
+
_invalidate(): void;
|
|
138
|
+
_getXOffset(): number;
|
|
139
|
+
_getYOffset(pointIndex: number): number;
|
|
140
|
+
_getValue(pointIndex: number): number;
|
|
141
|
+
_getItem(pi: number): any;
|
|
142
|
+
private _rendering;
|
|
143
|
+
private _getStyles;
|
|
144
|
+
private _getStyleByKey;
|
|
145
|
+
private _drawConnectorLine;
|
|
146
|
+
private _getLegendStyles;
|
|
147
|
+
private _getName;
|
|
148
|
+
}
|
|
149
|
+
/**
|
|
150
|
+
* Represents base class for various trend lines.
|
|
151
|
+
*/
|
|
152
|
+
export declare class TrendLineBase extends SeriesBase {
|
|
153
|
+
private _sampleCount;
|
|
154
|
+
private _bind;
|
|
155
|
+
private _bindX;
|
|
156
|
+
_xValues: any[];
|
|
157
|
+
_yValues: any[];
|
|
158
|
+
_originXValues: any[];
|
|
159
|
+
_originYValues: any[];
|
|
160
|
+
/**
|
|
161
|
+
* Initializes a new instance of the {@link TrendLineBase} class.
|
|
162
|
+
*
|
|
163
|
+
* @param options JavaScript object containing initialization data for the object.
|
|
164
|
+
*/
|
|
165
|
+
constructor(options?: any);
|
|
166
|
+
/**
|
|
167
|
+
* Gets or sets the sample count for function calculation.
|
|
168
|
+
* The property doesn't apply for MovingAverage.
|
|
169
|
+
*/
|
|
170
|
+
sampleCount: number;
|
|
171
|
+
/**
|
|
172
|
+
* Gets the approximate y value from the given x value.
|
|
173
|
+
*
|
|
174
|
+
* @param x The x value to be used for calculating the Y value.
|
|
175
|
+
*/
|
|
176
|
+
approximate(x: number): number;
|
|
177
|
+
getValues(dim: number): number[];
|
|
178
|
+
_calculateValues(): void;
|
|
179
|
+
_invalidate(): void;
|
|
180
|
+
_clearValues(): void;
|
|
181
|
+
_clearCalculatedValues(): void;
|
|
182
|
+
}
|
|
183
|
+
/**
|
|
184
|
+
* Specifies the type of MovingAverage Series.
|
|
185
|
+
*/
|
|
186
|
+
export declare enum MovingAverageType {
|
|
187
|
+
/**
|
|
188
|
+
* An average of the last n values.
|
|
189
|
+
*/
|
|
190
|
+
Simple = 0,
|
|
191
|
+
/**
|
|
192
|
+
* Weighted average of the last n values,
|
|
193
|
+
* where the weight decreases by 1 with each previous value.
|
|
194
|
+
*/
|
|
195
|
+
Weighted = 1,
|
|
196
|
+
/**
|
|
197
|
+
* Weighted average of the last n values,
|
|
198
|
+
* where the weight decreases exponentially with each previous value.
|
|
199
|
+
*/
|
|
200
|
+
Exponential = 2,
|
|
201
|
+
/**
|
|
202
|
+
* Weighted average of the last n values,
|
|
203
|
+
* whose result is equivalent to a double smoothed simple moving average.
|
|
204
|
+
*/
|
|
205
|
+
Triangular = 3
|
|
206
|
+
}
|
|
207
|
+
/**
|
|
208
|
+
* Represents a moving average trend line for {@link FlexChart} and {@link FinancialChart}.
|
|
209
|
+
*
|
|
210
|
+
* It is a calculation to analyze data points by creating a series of averages of
|
|
211
|
+
* different subsets of the full data set. You may define a different type on each
|
|
212
|
+
* {@link MovingAverage} object by setting the {@link type} property on the
|
|
213
|
+
* {@link MovingAverage} itself.
|
|
214
|
+
*
|
|
215
|
+
* The {@link MovingAverage} class has a {@link period} property that allows you to set
|
|
216
|
+
* the number of periods for computing the average value.
|
|
217
|
+
*/
|
|
218
|
+
export declare class MovingAverage extends TrendLineBase {
|
|
219
|
+
private _period;
|
|
220
|
+
private _type;
|
|
221
|
+
/**
|
|
222
|
+
* Initializes a new instance of the {@link MovingAverage} class.
|
|
223
|
+
*
|
|
224
|
+
* @param options JavaScript object containing initialization data for the object.
|
|
225
|
+
*/
|
|
226
|
+
constructor(options?: any);
|
|
227
|
+
/**
|
|
228
|
+
* Gets or sets the type of the moving average series.
|
|
229
|
+
*/
|
|
230
|
+
type: MovingAverageType;
|
|
231
|
+
/**
|
|
232
|
+
* Gets or sets the period of the moving average series.
|
|
233
|
+
* It should be set to integer value greater than 1.
|
|
234
|
+
*/
|
|
235
|
+
period: number;
|
|
236
|
+
_checkPeriod(): void;
|
|
237
|
+
_calculateValues(): void;
|
|
238
|
+
private _calculateSimple;
|
|
239
|
+
private _calculateWeighted;
|
|
240
|
+
private _calculateExponential;
|
|
241
|
+
private _calculateTriangular;
|
|
242
|
+
}
|
|
243
|
+
/**
|
|
244
|
+
* Specifies the fit type for a {@link TrendLine} series.
|
|
245
|
+
*/
|
|
246
|
+
export declare enum TrendLineFitType {
|
|
247
|
+
/**
|
|
248
|
+
* A straight line that most closely approximates the data. Y(x) = a * x + b.
|
|
249
|
+
*/
|
|
250
|
+
Linear = 0,
|
|
251
|
+
/**
|
|
252
|
+
* Regression fit to the equation Y(x) = a * exp(b*x).
|
|
253
|
+
*/
|
|
254
|
+
Exponential = 1,
|
|
255
|
+
/**
|
|
256
|
+
* Regression fit to the equation Y(x) = a * ln(x) + b.
|
|
257
|
+
*/
|
|
258
|
+
Logarithmic = 2,
|
|
259
|
+
/**
|
|
260
|
+
* Regression fit to the equation Y(x) = a * pow(x, b).
|
|
261
|
+
*/
|
|
262
|
+
Power = 3,
|
|
263
|
+
/**
|
|
264
|
+
* Regression fit to the equation Y(x) = a + b * cos(x) + c * sin(x) + d * cos(2*x) + e * sin(2*x) + ...
|
|
265
|
+
*/
|
|
266
|
+
Fourier = 4,
|
|
267
|
+
/**
|
|
268
|
+
* Regression fit to the equation Y(x) = a * x^n + b * x^n-1 + c * x^n-2 + ... + z.
|
|
269
|
+
*/
|
|
270
|
+
Polynomial = 5,
|
|
271
|
+
/**
|
|
272
|
+
* The minimum X-value.
|
|
273
|
+
*/
|
|
274
|
+
MinX = 6,
|
|
275
|
+
/**
|
|
276
|
+
* The minimum Y-value.
|
|
277
|
+
*/
|
|
278
|
+
MinY = 7,
|
|
279
|
+
/**
|
|
280
|
+
* The maximum X-value.
|
|
281
|
+
*/
|
|
282
|
+
MaxX = 8,
|
|
283
|
+
/**
|
|
284
|
+
* The maximum Y-value.
|
|
285
|
+
*/
|
|
286
|
+
MaxY = 9,
|
|
287
|
+
/**
|
|
288
|
+
* The average X-value.
|
|
289
|
+
*/
|
|
290
|
+
AverageX = 10,
|
|
291
|
+
/**
|
|
292
|
+
* The average Y-value.
|
|
293
|
+
*/
|
|
294
|
+
AverageY = 11
|
|
295
|
+
}
|
|
296
|
+
/**
|
|
297
|
+
* Represents a trend line series in a {@link FlexChart} or {@link FinancialChart}.
|
|
298
|
+
*
|
|
299
|
+
* A trend line is a line superimposed on a chart revealing the overall
|
|
300
|
+
* direction of data.
|
|
301
|
+
*
|
|
302
|
+
* You may define a different fit type for each {@link TrendLine} series
|
|
303
|
+
* on the {@link FlexChart} by setting its {@link fitType} property.
|
|
304
|
+
*/
|
|
305
|
+
export declare class TrendLine extends TrendLineBase {
|
|
306
|
+
private _fitType;
|
|
307
|
+
private _order;
|
|
308
|
+
private _helper;
|
|
309
|
+
/**
|
|
310
|
+
* Initializes a new instance of the {@link TrendLine} class.
|
|
311
|
+
*
|
|
312
|
+
* @param options JavaScript object containing initialization data for the object.
|
|
313
|
+
*/
|
|
314
|
+
constructor(options?: any);
|
|
315
|
+
/**
|
|
316
|
+
* Gets or sets the fit type of the {@link TrendLine}.
|
|
317
|
+
*/
|
|
318
|
+
fitType: TrendLineFitType;
|
|
319
|
+
/**
|
|
320
|
+
* Gets or sets the number of terms in a polynomial or Fourier equation.
|
|
321
|
+
*
|
|
322
|
+
* Set this value to an integer greater than 1.
|
|
323
|
+
* It gets applied when the fitType is set to
|
|
324
|
+
* TrendLineFitType.Polynomial or
|
|
325
|
+
* TrendLineFitType.Fourier.
|
|
326
|
+
*/
|
|
327
|
+
order: number;
|
|
328
|
+
/**
|
|
329
|
+
* Gets the coefficients of the equation.
|
|
330
|
+
*/
|
|
331
|
+
readonly coefficients: number[];
|
|
332
|
+
/**
|
|
333
|
+
* Gets the approximate y value from the given x value.
|
|
334
|
+
*
|
|
335
|
+
* @param x The x value to be used for calculating the Y value.
|
|
336
|
+
*/
|
|
337
|
+
approximate(x: number): number;
|
|
338
|
+
/**
|
|
339
|
+
* Gets the formatted equation string for the coefficients.
|
|
340
|
+
*
|
|
341
|
+
* @param fmt The formatting function used to convert the coefficients
|
|
342
|
+
* into strings. This parameter is optional.
|
|
343
|
+
*/
|
|
344
|
+
getEquation(fmt?: Function): string;
|
|
345
|
+
_calculateValues(): void;
|
|
346
|
+
}
|
|
347
|
+
/**
|
|
348
|
+
* Represents a base class of function series for {@link FlexChart}.
|
|
349
|
+
*/
|
|
350
|
+
export declare class FunctionSeries extends TrendLineBase {
|
|
351
|
+
private _min;
|
|
352
|
+
private _max;
|
|
353
|
+
/**
|
|
354
|
+
* Initializes a new instance of the {@link FunctionSeries} class.
|
|
355
|
+
*
|
|
356
|
+
* @param options JavaScript object containing initialization data for the object.
|
|
357
|
+
*/
|
|
358
|
+
constructor(options?: any);
|
|
359
|
+
/**
|
|
360
|
+
* Gets or sets the minimum value of the parameter for calculating a function.
|
|
361
|
+
*/
|
|
362
|
+
min: number;
|
|
363
|
+
/**
|
|
364
|
+
* Gets or sets the maximum value of the parameter for calculating a function.
|
|
365
|
+
*/
|
|
366
|
+
max: number;
|
|
367
|
+
getValues(dim: number): number[];
|
|
368
|
+
_calculateValues(): void;
|
|
369
|
+
_validateValue(value: number): number;
|
|
370
|
+
_calculateValue(func: Function, parameter: number): number;
|
|
371
|
+
_calculateX(value: number): number;
|
|
372
|
+
_calculateY(value: number): number;
|
|
373
|
+
}
|
|
374
|
+
/**
|
|
375
|
+
* Represents a Y function series of {@link FlexChart}.
|
|
376
|
+
*
|
|
377
|
+
* The {@link YFunctionSeries} plots a function defined by formulas
|
|
378
|
+
* of type y=f(x), specified using the {@link func} property.
|
|
379
|
+
*/
|
|
380
|
+
export declare class YFunctionSeries extends FunctionSeries {
|
|
381
|
+
private _func;
|
|
382
|
+
/**
|
|
383
|
+
* Initializes a new instance of the {@link YFunctionSeries} class.
|
|
384
|
+
*
|
|
385
|
+
* @param options JavaScript object containing initialization data for the object.
|
|
386
|
+
*/
|
|
387
|
+
constructor(options?: any);
|
|
388
|
+
/**
|
|
389
|
+
* Gets or sets the function used to calculate Y value.
|
|
390
|
+
*/
|
|
391
|
+
func: Function;
|
|
392
|
+
_calculateX(value: number): number;
|
|
393
|
+
_calculateY(value: number): number;
|
|
394
|
+
/**
|
|
395
|
+
* Gets the approximate y value from the given x value.
|
|
396
|
+
*
|
|
397
|
+
* @param x The x value to be used for calculating the Y value.
|
|
398
|
+
*/
|
|
399
|
+
approximate(x: number): number;
|
|
400
|
+
}
|
|
401
|
+
/**
|
|
402
|
+
* Represents a parametric function series for {@link FlexChart}.
|
|
403
|
+
*
|
|
404
|
+
* The {@link ParametricFunctionSeries} plots a function defined by formulas
|
|
405
|
+
* x=f(t) and y=f(t).
|
|
406
|
+
*
|
|
407
|
+
* The x and y values are calculated by the functions assigned to the
|
|
408
|
+
* {@link xFunc} and {@link yFunc} properties.
|
|
409
|
+
*/
|
|
410
|
+
export declare class ParametricFunctionSeries extends FunctionSeries {
|
|
411
|
+
private _xFunc;
|
|
412
|
+
private _yFunc;
|
|
413
|
+
/**
|
|
414
|
+
* Initializes a new instance of the {@link ParametricFunctionSeries} class.
|
|
415
|
+
*
|
|
416
|
+
* @param options JavaScript object containing initialization data for the object.
|
|
417
|
+
*/
|
|
418
|
+
constructor(options?: any);
|
|
419
|
+
/**
|
|
420
|
+
* Gets or sets the function used to calculate the x value.
|
|
421
|
+
*/
|
|
422
|
+
xFunc: Function;
|
|
423
|
+
/**
|
|
424
|
+
* Gets or sets the function used to calculate the y value.
|
|
425
|
+
*/
|
|
426
|
+
yFunc: Function;
|
|
427
|
+
_calculateX(value: number): number;
|
|
428
|
+
_calculateY(value: number): number;
|
|
429
|
+
/**
|
|
430
|
+
* Gets the approximate x and y from the given value.
|
|
431
|
+
*
|
|
432
|
+
* @param value The value to calculate.
|
|
433
|
+
*/
|
|
434
|
+
approximate(value: number): any;
|
|
435
|
+
}
|
|
436
|
+
/**
|
|
437
|
+
* Specifies the meaning of the {@link ErrorBar}'s {@link ErrorBar.value} property.
|
|
438
|
+
*/
|
|
439
|
+
export declare enum ErrorAmount {
|
|
440
|
+
/** The value property represents the error as an absolute value. */
|
|
441
|
+
FixedValue = 0,
|
|
442
|
+
/** The value property represents the error as a percentage. */
|
|
443
|
+
Percentage = 1,
|
|
444
|
+
/** The value property represents the error as a number of standard deviations. */
|
|
445
|
+
StandardDeviation = 2,
|
|
446
|
+
/** The error is the standard error of the mean (value property is not used). */
|
|
447
|
+
StandardError = 3,
|
|
448
|
+
/** Error values are bound through the {@link ErrorBar.binding} property or set to an object with 'plus' and 'minus' values. */
|
|
449
|
+
Custom = 4
|
|
450
|
+
}
|
|
451
|
+
/**
|
|
452
|
+
* Specifies the end style of the error bars.
|
|
453
|
+
*/
|
|
454
|
+
export declare enum ErrorBarEndStyle {
|
|
455
|
+
/** Error bars end with a cap. */
|
|
456
|
+
Cap = 0,
|
|
457
|
+
/** Error bars are simple lines. */
|
|
458
|
+
NoCap = 1
|
|
459
|
+
}
|
|
460
|
+
/**
|
|
461
|
+
* Specifies the direction of the error bar.
|
|
462
|
+
*/
|
|
463
|
+
export declare enum ErrorBarDirection {
|
|
464
|
+
/** Show errors in both directions. */
|
|
465
|
+
Both = 0,
|
|
466
|
+
/** Show errors only in the minus direction. */
|
|
467
|
+
Minus = 1,
|
|
468
|
+
/** Show errors only in the plus direction. */
|
|
469
|
+
Plus = 2
|
|
470
|
+
}
|
|
471
|
+
/**
|
|
472
|
+
* Represents an {@link ErrorBar} series on a {@link FlexChart}.
|
|
473
|
+
*
|
|
474
|
+
* The {@link ErrorBar} series shows error margins and standard deviations
|
|
475
|
+
* at a glance. They can be shown as a standard error amounts, percentages,
|
|
476
|
+
* or standard deviation.
|
|
477
|
+
*
|
|
478
|
+
* You can also set the error values explicitly to display the exact
|
|
479
|
+
* amounts you want.
|
|
480
|
+
*/
|
|
481
|
+
export declare class ErrorBar extends Series {
|
|
482
|
+
private __errorValue;
|
|
483
|
+
private _mean;
|
|
484
|
+
private _errorAmount;
|
|
485
|
+
private _endStyle;
|
|
486
|
+
private _direction;
|
|
487
|
+
private _value;
|
|
488
|
+
private _errorBarStyle;
|
|
489
|
+
private _paddings;
|
|
490
|
+
private _plusBindingValues;
|
|
491
|
+
private _minusBindingValues;
|
|
492
|
+
private _errorBarEles;
|
|
493
|
+
/**
|
|
494
|
+
* Initializes a new instance of the {@link ErrorBar} class.
|
|
495
|
+
*
|
|
496
|
+
* @param options JavaScript object containing initialization data for the object.
|
|
497
|
+
*/
|
|
498
|
+
constructor(options?: any);
|
|
499
|
+
/**
|
|
500
|
+
* Gets or sets a value that specifies the error value of the series.
|
|
501
|
+
*
|
|
502
|
+
* This property works with the {@link errorAmount} property.
|
|
503
|
+
*/
|
|
504
|
+
value: any;
|
|
505
|
+
/**
|
|
506
|
+
* Gets or sets a value that specifies the meaning of the
|
|
507
|
+
* {@link value} property.
|
|
508
|
+
*/
|
|
509
|
+
errorAmount: ErrorAmount;
|
|
510
|
+
/**
|
|
511
|
+
* Gets or sets the style used to render the error bars.
|
|
512
|
+
*/
|
|
513
|
+
errorBarStyle: any;
|
|
514
|
+
/**
|
|
515
|
+
* Gets or sets a value that specifies the end style of the error bars.
|
|
516
|
+
*/
|
|
517
|
+
endStyle: ErrorBarEndStyle;
|
|
518
|
+
/**
|
|
519
|
+
* Gets or sets a value that specifies the direction of the error bars.
|
|
520
|
+
*/
|
|
521
|
+
direction: ErrorBarDirection;
|
|
522
|
+
getDataRect(currentRect?: Rect, calculatedRect?: Rect): Rect;
|
|
523
|
+
private _getCustomValue;
|
|
524
|
+
_calculateErrorValue(): void;
|
|
525
|
+
_clearValues(): void;
|
|
526
|
+
getValues(dim: number): number[];
|
|
527
|
+
_chart: FlexChartCore;
|
|
528
|
+
_errorValue: number;
|
|
529
|
+
readonly _showPlus: boolean;
|
|
530
|
+
readonly _showMinus: boolean;
|
|
531
|
+
private _rendering;
|
|
532
|
+
/**
|
|
533
|
+
* Gets the plot element that corresponds to the specified point index.
|
|
534
|
+
*
|
|
535
|
+
* @param pointIndex The index of the data point.
|
|
536
|
+
*/
|
|
537
|
+
getPlotElement(pointIndex: number): any;
|
|
538
|
+
}
|
|
539
|
+
/** Defines styles for the {@link BreakEven} series. */
|
|
540
|
+
export interface IBreakEvenStyles {
|
|
541
|
+
/** Specifies the style of the fixed cost line. */
|
|
542
|
+
fixedCost?: any;
|
|
543
|
+
/** Specifies the style of the variable cost line. */
|
|
544
|
+
variableCost?: any;
|
|
545
|
+
/** Specifies the style of the total cost line. */
|
|
546
|
+
totalCost?: any;
|
|
547
|
+
/** Specifies the style of the sales revenue line. */
|
|
548
|
+
salesRevenue?: any;
|
|
549
|
+
/** Specifies the style of the safety margin area. */
|
|
550
|
+
safetyMargin?: any;
|
|
551
|
+
/** Specifies the style of the marginal profit line. */
|
|
552
|
+
marginalProfit?: any;
|
|
553
|
+
/** Specifies the style of the break even markers. */
|
|
554
|
+
breakEven?: any;
|
|
555
|
+
}
|
|
556
|
+
/**
|
|
557
|
+
* Represents a Break Even chart series.
|
|
558
|
+
*
|
|
559
|
+
* A break even chart is a chart that shows the sales volume level at which total costs equal sales.
|
|
560
|
+
* Use the styles property to customize appearance of different parts of Break Even chart.
|
|
561
|
+
* The name property contains comma-separated names that are shown as legend entries.
|
|
562
|
+
*/
|
|
563
|
+
export declare class BreakEven extends SeriesBase {
|
|
564
|
+
private _fixedCost;
|
|
565
|
+
private _variableCost;
|
|
566
|
+
private _salesPrice;
|
|
567
|
+
private _styles;
|
|
568
|
+
/**
|
|
569
|
+
* Initializes a new instance of the {@link BreakEven} class.
|
|
570
|
+
*
|
|
571
|
+
* @param options JavaScript object containing initialization data for the object.
|
|
572
|
+
*/
|
|
573
|
+
constructor(options?: any);
|
|
574
|
+
/**
|
|
575
|
+
* Gets or sets a value of fixed cost.
|
|
576
|
+
*/
|
|
577
|
+
fixedCost: number;
|
|
578
|
+
/**
|
|
579
|
+
* Gets or sets a value of variable cost.
|
|
580
|
+
*/
|
|
581
|
+
variableCost: number;
|
|
582
|
+
/**
|
|
583
|
+
* Gets or sets a value of sales price.
|
|
584
|
+
*/
|
|
585
|
+
salesPrice: number;
|
|
586
|
+
/**
|
|
587
|
+
* Gets or sets the styles of Break Even chart.
|
|
588
|
+
*
|
|
589
|
+
* The following styles are supported:
|
|
590
|
+
*
|
|
591
|
+
* <ol>
|
|
592
|
+
* <li><b>fixedCost</b>: Specifies the style of the fixed cost.</li>
|
|
593
|
+
* <li><b>variableCost</b>: Specifies the style of the variable cost.</li>
|
|
594
|
+
* <li><b>totalCost</b>: Specifies the style of the total cost.</li>
|
|
595
|
+
* <li><b>salesRevenue</b>: Specifies the style of the sales revenue.</li>
|
|
596
|
+
* <li><b>safetyMargin</b>: Specifies the style of the safety margin.</li>
|
|
597
|
+
* <li><b>marginalProfit</b>: Specifies the style of the marginal profit.</li>
|
|
598
|
+
* <li><b>breakEven</b>: Specifies the style of the break even.</li>
|
|
599
|
+
* </ol>
|
|
600
|
+
*
|
|
601
|
+
* The style of profit and loss areas is specified by the style and altStyle properties.
|
|
602
|
+
*/
|
|
603
|
+
styles: IBreakEvenStyles;
|
|
604
|
+
getValues(dim: number): number[];
|
|
605
|
+
private _rendering;
|
|
606
|
+
_setStyle(eng: IRenderEngine, style: any): void;
|
|
607
|
+
_getName(dim: number): string;
|
|
608
|
+
legendItemLength(): number;
|
|
609
|
+
_getStyle(index: number): any;
|
|
610
|
+
measureLegendItem(engine: IRenderEngine, index: number): Size;
|
|
611
|
+
drawLegendItem(engine: IRenderEngine, rect: Rect, index: number): void;
|
|
612
|
+
}
|
|
613
|
+
/**
|
|
614
|
+
* Specifies the quartile calculation method of {@link BoxWhisker} series.
|
|
615
|
+
*/
|
|
616
|
+
export declare enum QuartileCalculation {
|
|
617
|
+
/** Include median value when calculating quartile. */
|
|
618
|
+
InclusiveMedian = 0,
|
|
619
|
+
/** Exclude median value when calculating quartile. */
|
|
620
|
+
ExclusiveMedian = 1
|
|
621
|
+
}
|
|
622
|
+
/**
|
|
623
|
+
* Represents a Box&Whisker chart series.
|
|
624
|
+
*
|
|
625
|
+
* The {@link BoxWhisker} series is normally used to compare distributions
|
|
626
|
+
* between different sets of numerical data.
|
|
627
|
+
*/
|
|
628
|
+
export declare class BoxWhisker extends SeriesBase {
|
|
629
|
+
private _groupWidth;
|
|
630
|
+
private _gapWidth;
|
|
631
|
+
private _showMeanLine;
|
|
632
|
+
private _meanLineStyle;
|
|
633
|
+
private _showMeanMarker;
|
|
634
|
+
private _meanMarkerStyle;
|
|
635
|
+
private _showInnerPoints;
|
|
636
|
+
private _showOutliers;
|
|
637
|
+
private _quartileCalculation;
|
|
638
|
+
hitTester: _HitTester;
|
|
639
|
+
/**
|
|
640
|
+
* Initializes a new instance of the {@link BoxWhisker} class.
|
|
641
|
+
*
|
|
642
|
+
* @param options JavaScript object containing initialization data for the object.
|
|
643
|
+
*/
|
|
644
|
+
constructor(options?: any);
|
|
645
|
+
private _initProperties;
|
|
646
|
+
_clearValues(): void;
|
|
647
|
+
/**
|
|
648
|
+
* Gets or sets a value that specifies the quartile calculation method.
|
|
649
|
+
*/
|
|
650
|
+
quartileCalculation: QuartileCalculation;
|
|
651
|
+
/**
|
|
652
|
+
* Gets or sets a value that determines the group width as a percentage.
|
|
653
|
+
*
|
|
654
|
+
* The default value for this property is 0.8. The min value is 0 and max value is 1.
|
|
655
|
+
*/
|
|
656
|
+
groupWidth: number;
|
|
657
|
+
/**
|
|
658
|
+
* Gets or sets a value that determines the width of the gab between groups
|
|
659
|
+
* as a percentage.
|
|
660
|
+
*
|
|
661
|
+
* The default value for this property is 0.1. The min value is 0 and max value is 1.
|
|
662
|
+
*/
|
|
663
|
+
gapWidth: number;
|
|
664
|
+
/**
|
|
665
|
+
* Gets or sets a value that determines whether to show the mean line.
|
|
666
|
+
*/
|
|
667
|
+
showMeanLine: boolean;
|
|
668
|
+
/**
|
|
669
|
+
* Gets or sets a value that specifies the style for the mean line.
|
|
670
|
+
*/
|
|
671
|
+
meanLineStyle: any;
|
|
672
|
+
/**
|
|
673
|
+
* Gets or sets a value that determines whether to show the mean marker.
|
|
674
|
+
*/
|
|
675
|
+
showMeanMarker: boolean;
|
|
676
|
+
/**
|
|
677
|
+
* Gets or sets a value that specifies the style for the mean marker.
|
|
678
|
+
*/
|
|
679
|
+
meanMarkerStyle: any;
|
|
680
|
+
/**
|
|
681
|
+
* Gets or sets a value that determines whether to show the inner data points
|
|
682
|
+
* for each point in the series.
|
|
683
|
+
*/
|
|
684
|
+
showInnerPoints: boolean;
|
|
685
|
+
/**
|
|
686
|
+
* Gets or sets a value that determines whether to show outliers.
|
|
687
|
+
*
|
|
688
|
+
* Outliers are inner points outside the range between the first
|
|
689
|
+
* and third quartiles.
|
|
690
|
+
*/
|
|
691
|
+
showOutliers: boolean;
|
|
692
|
+
private _rendering;
|
|
693
|
+
_convertPoints(points: number[], axis: _IAxis): number[];
|
|
694
|
+
_drawBoxWhisker(engine: IRenderEngine, xs: any, ys: any, prevXS: any, prevYS: any, series: _ISeries): void;
|
|
695
|
+
_renderLabels(engine: IRenderEngine, smap: _IHitArea[], chart: FlexChartCore, lblAreas: _RectArea[]): void;
|
|
696
|
+
}
|
|
697
|
+
export declare class _BoxPlot {
|
|
698
|
+
private _data;
|
|
699
|
+
private _min;
|
|
700
|
+
private _max;
|
|
701
|
+
private _mean;
|
|
702
|
+
private _firstQuartile;
|
|
703
|
+
private _thirdQuartile;
|
|
704
|
+
private _median;
|
|
705
|
+
private _quartileCalculation;
|
|
706
|
+
private _iqr;
|
|
707
|
+
private _outlierPoints;
|
|
708
|
+
private _innerPoints;
|
|
709
|
+
private _showOutliers;
|
|
710
|
+
constructor(data: number[], quartileCalculation: QuartileCalculation, showOutliers: boolean);
|
|
711
|
+
readonly showOutliers: boolean;
|
|
712
|
+
readonly min: number;
|
|
713
|
+
readonly max: number;
|
|
714
|
+
readonly mean: number;
|
|
715
|
+
readonly firstQuartile: number;
|
|
716
|
+
readonly thirdQuartile: number;
|
|
717
|
+
readonly median: number;
|
|
718
|
+
readonly outlierPoints: number[];
|
|
719
|
+
readonly innerPoints: number[];
|
|
720
|
+
_parse(): void;
|
|
721
|
+
_quartileInc(data: number[], percent: number): any;
|
|
722
|
+
_quartileExc(data: number[], percent: number): any;
|
|
723
|
+
}
|