configJson method

VlChart configJson(
  1. VlJson config
)

Merges a configuration block into the specification.

config The configuration object.

Returns This chart, so calls chain.

Implementation

VlChart configJson(VlJson config) {
  for ( int ki = 0; ki < config.keys.length; ki++) {
    var k = config.keys[ki];
    this.cfg.setMember(k, config._get(k));
  }
  return this;
}