load method
- dynamic args
Load data to the chart. If url, json, rows and columns given, the data will be loaded. If data that has the same target id is given, the chart will be updated. Otherwise, new target will be added. If classes given, the classes specifed by data.classes will be updated. classes must be Object that has target id as keys. If categories given, the categories specifed by axis.x.categories or data.x will be updated. categories must be Array. If axes given, the axes specifed by data.axes will be updated. axes must be Object that has target id as keys. If colors given, the colors specifed by data.colors will be updated. colors must be Object that has target id as keys. If type or types given, the type of targets will be updated. type must be String and types must be Object. If unload given, data will be unloaded before loading new data. If true given, all of data will be unloaded. If target ids given as String or Array, specified targets will be unloaded. If done given, the specified function will be called after data loded. NOTE: unload should be used if some data needs to be unloaded simultaneously. If you call unload API soon after/before load instead of unload param, chart will not be rendered properly because of cancel of animation. NOTE: done will be called after data loaded, but it's not after rendering. It's because rendering will finish after some transition and there is some time lag between loading and rendering.
Implementation
external void load(
dynamic
/*{
url?: string;
json?: {};
keys?: { x?: string; value: string[]; }
rows?: PrimitiveArray[];
columns?: PrimitiveArray[];
names?: { [key: string]: string };
classes?: { [key: string]: string };
categories?: string[];
axes?: { [key: string]: string };
colors?: { [key: string]: string | d3.Rgb };
type?: string;
types?: { [key: string]: string };
unload?: boolean | ArrayOrString;
done?(): any;
}*/
args);