toOptionsJSON method

  1. @override
void toOptionsJSON(
  1. StringBuffer buffer
)
override

Implementation

@override
void toOptionsJSON(StringBuffer buffer) {
  super.toOptionsJSON(buffer);

  if (activeAxisLabelStyle != null) {
    buffer.write('"activeAxisLabelStyle":{');
    for (var item in activeAxisLabelStyle!.entries) {
      buffer.writeAll(['"', item.key, '":', jsonEncode(item.value), ','], '');
    }
    buffer.write('},');
  }
  if (activeDataLabelStyle != null) {
    buffer.writeAll(
        ['"activeDataLabelStyle":', activeDataLabelStyle?.toJSON(), ','], '');
  }
  if (allowPointDrilldown != null) {
    buffer.writeAll(['"allowPointDrilldown":', allowPointDrilldown, ','], '');
  }
  if (animation != null) {
    buffer.writeAll(['"animation":', jsonEncode(animation), ','], '');
  }
  if (breadcrumbs != null) {
    buffer.writeAll(['"breadcrumbs":', breadcrumbs?.toJSON(), ','], '');
  }
  if (drillUpButton != null) {
    buffer.writeAll(['"drillUpButton":', drillUpButton?.toJSON(), ','], '');
  }
  if (mapZooming != null) {
    buffer.writeAll(['"mapZooming":', mapZooming, ','], '');
  }
  if (series != null) {
    buffer.write('"series":[');
    for (var item in series!) {
      buffer.writeAll([jsonEncode(item), ','], '');
    }
    buffer.write('],');
  }
}