tvcharts 0.6.21 → 0.6.23
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/dist/echarts.js +145 -30
- package/dist/echarts.js.map +2 -2
- package/lib/chart/bgColor/BgColorLayout.js +5 -0
- package/lib/chart/fills/fillsLayout.js +5 -0
- package/lib/chart/labels/labelsLayout.js +5 -0
- package/lib/chart/labels/labelsVisual.js +5 -0
- package/lib/chart/linesPlot/linesPlotLayout.js +10 -4
- package/lib/core/echarts.js +52 -19
- package/lib/data/DataStore.js +17 -0
- package/lib/data/SeriesData.js +7 -0
- package/lib/data/helper/dataProvider.js +40 -3
- package/lib/model/Series.js +5 -1
- package/lib/util/states.js +23 -13
- package/package.json +1 -1
- package/types/dist/echarts.d.ts +15 -2
- package/types/dist/shared.d.ts +15 -2
- package/types/src/chart/labels/LabelsSeries.d.ts +1 -0
- package/types/src/chart/linesPlot/LinesPlotSeries.d.ts +1 -0
- package/types/src/core/echarts.d.ts +2 -2
- package/types/src/data/DataStore.d.ts +1 -0
- package/types/src/data/SeriesData.d.ts +4 -0
- package/types/src/data/helper/dataProvider.d.ts +6 -0
- package/types/src/model/Series.d.ts +3 -0
- package/types/src/util/states.d.ts +2 -0
- package/types/src/util/types.d.ts +1 -0
|
@@ -205,6 +205,10 @@ declare class SeriesData<HostModel extends Model = Model, Visual extends Default
|
|
|
205
205
|
* Caution: Can be only called on raw data (before `this._indices` created).
|
|
206
206
|
*/
|
|
207
207
|
appendData(data: ArrayLike<any>): void;
|
|
208
|
+
/**
|
|
209
|
+
* Caution: Can be only called on raw data (before `this._indices` created).
|
|
210
|
+
*/
|
|
211
|
+
updateData(data: ArrayLike<any>): void;
|
|
208
212
|
updateValue(value: any): void;
|
|
209
213
|
/**
|
|
210
214
|
* Caution: Can be only called on raw data (before `this._indices` created).
|
|
@@ -19,6 +19,9 @@ export interface DataProvider {
|
|
|
19
19
|
getItem(idx: number, out?: OptionDataItem): OptionDataItem;
|
|
20
20
|
fillStorage?(start: number, end: number, out: ArrayLike<ParsedValue>[], extent: number[][]): void;
|
|
21
21
|
appendData?(newData: ArrayLike<OptionDataItem>): void;
|
|
22
|
+
updateData?(updateData: ArrayLike<OptionDataItem>): {
|
|
23
|
+
update: number;
|
|
24
|
+
};
|
|
22
25
|
clean?(): void;
|
|
23
26
|
}
|
|
24
27
|
export interface DefaultDataProvider {
|
|
@@ -41,6 +44,9 @@ export declare class DefaultDataProvider implements DataProvider {
|
|
|
41
44
|
count(): number;
|
|
42
45
|
getItem(idx: number, out?: ArrayLike<OptionDataValue>): OptionDataItem;
|
|
43
46
|
appendData(newData: OptionSourceData): void;
|
|
47
|
+
updateData(newData: OptionSourceData): {
|
|
48
|
+
update: number;
|
|
49
|
+
};
|
|
44
50
|
clean(): void;
|
|
45
51
|
private static internalField;
|
|
46
52
|
}
|
|
@@ -66,9 +66,11 @@ interface ISeriesPointData {
|
|
|
66
66
|
color: string;
|
|
67
67
|
changePercent: string;
|
|
68
68
|
diffValue: number;
|
|
69
|
+
type: string;
|
|
69
70
|
}
|
|
70
71
|
export declare function getSeriesPointData(ecModel: GlobalModel, payload?: {
|
|
71
72
|
dataIndex?: number;
|
|
73
|
+
rawDataIndex?: number;
|
|
72
74
|
}): Record<string, ISeriesPointData>;
|
|
73
75
|
/**
|
|
74
76
|
* Enable the function that mouseover will trigger the emphasis state.
|
|
@@ -1246,6 +1246,7 @@ export interface SeriesOption<StateOption = unknown, StatesMixin extends StatesM
|
|
|
1246
1246
|
formatter?: (val: string | number) => string | number;
|
|
1247
1247
|
notFilterData?: boolean;
|
|
1248
1248
|
offset?: number;
|
|
1249
|
+
showLast?: number;
|
|
1249
1250
|
}
|
|
1250
1251
|
export interface SeriesOnCartesianOptionMixin {
|
|
1251
1252
|
xAxisIndex?: number;
|