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.
@@ -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
  }
@@ -92,6 +92,9 @@ declare class SeriesModel<Opt extends SeriesOption = SeriesOption> extends Compo
92
92
  appendData(params: {
93
93
  data: ArrayLike<any>;
94
94
  }): void;
95
+ updateValue(params: {
96
+ data: any[];
97
+ }): void;
95
98
  updateData(params: {
96
99
  data: any[];
97
100
  }): void;
@@ -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;