load method
void
load(
- dynamic args
Load data to the chart. You can specify multiple targets by giving an array that includes id as String. If no argument is given, all of targets will be toggles.
- 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.
- 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(
/*Chart this*/ dynamic
/*{
url?: string;
json?: [{ [key: string]: string }];
rows?: PrimitiveArray[];
columns?: PrimitiveArray[];
data?: Array<{ [key: string]: number }>;
names?: { [key: string]: string };
xs?: { [key: string]: string };
classes?: { [key: string]: string };
categories?: string[];
axes?: { [key: string]: string | string[] };
colors?: { [key: string]: string };
headers?: { [key: string]: string };
keys?: { [key: string]: string };
mimeType?: string;
type?: string;
types?: { [key: string]: string };
unload?: boolean | ArrayOrString;
done?: () => any;
}*/
args);