@visactor/vchart-types 2.0.5 → 2.0.6
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.
|
@@ -8,6 +8,7 @@ export interface IWaterfallOpt {
|
|
|
8
8
|
startAs: string;
|
|
9
9
|
endAs: string;
|
|
10
10
|
total: IWaterfallSeriesSpec['total'];
|
|
11
|
+
calculationMode: 'increase' | 'decrease';
|
|
11
12
|
seriesFieldName: {
|
|
12
13
|
total: string;
|
|
13
14
|
increase: string;
|
|
@@ -22,5 +23,6 @@ export interface IWaterfallFillEndOpt {
|
|
|
22
23
|
valueField: string;
|
|
23
24
|
seriesField?: string;
|
|
24
25
|
total: IWaterfallSeriesSpec['total'];
|
|
26
|
+
calculationMode: IWaterfallSeriesSpec['calculationMode'];
|
|
25
27
|
}
|
|
26
28
|
export declare const waterfallFillTotal: (data: Array<Datum>, op: IWaterfallFillEndOpt) => Datum[];
|
|
@@ -23,6 +23,9 @@ export declare class FormatterPlugin extends BasePlugin implements IChartPlugin
|
|
|
23
23
|
protected _format(text: string | number | string[] | number[], datum: any, formatter: string | string[]): string | number | (string | number)[];
|
|
24
24
|
protected _formatSingleLine(text: string | number, datum: any, formatter: string): string | number;
|
|
25
25
|
protected _formatSingleText(text: string | number, formatter: string): string | number;
|
|
26
|
+
private _calcFormatter;
|
|
27
|
+
private _calculateMathExpression;
|
|
28
|
+
private _isValidMathExpression;
|
|
26
29
|
release(): void;
|
|
27
30
|
}
|
|
28
31
|
export declare const registerFormatPlugin: () => void;
|
|
@@ -49,6 +49,7 @@ export interface IWaterfallSeriesSpec extends Omit<IBarSeriesSpec, 'type' | 'lab
|
|
|
49
49
|
visible: boolean;
|
|
50
50
|
offset?: number;
|
|
51
51
|
};
|
|
52
|
+
calculationMode?: 'increase' | 'decrease';
|
|
52
53
|
}
|
|
53
54
|
export interface IWaterfallSeriesTheme extends IBarSeriesTheme {
|
|
54
55
|
seriesFieldName: {
|