flow method
void
flow(
- dynamic args
Flow data to the chart. By this API, you can append new data points to the chart. The args object can consist with following members:
Key | Type | Description |
---|---|---|
json | Object | Data as JSON format (@see data․json) |
rows | Array | Data in array as row format (@see data․rows) |
columns | Array | Data in array as column format (@see data․columns) |
to | String | The lower x edge will move to that point. If not given, the lower x edge will move by the number of given data points |
length | Number | The lower x edge will move by the number of this argument |
duration | Number | The duration of the transition will be specified value. If not given, transition.duration will be used as default |
done | Function | The specified function will be called when flow ends |
- NOTE:
- If json, rows and columns given, the data will be loaded.
- If data that has the same target id is given, the chart will be appended.
- Otherwise, new target will be added. One of these is required when calling.
- If json specified, keys is required as well as data.json.
- If tab isn't visible(by evaluating
document.hidden
), will not be executed to prevent unnecessary work.
Implementation
external void flow(
dynamic
/*{
json?: {};
keys?: { x?: string; value: string[] };
rows?: PrimitiveArray[];
columns?: PrimitiveArray[];
to?: any;
length?: number;
duration?: number;
done?(this: Chart): any;
}*/
args);