toOptionsJSON method

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

Implementation

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

  if (announceNewData != null) {
    buffer
        .writeAll(['"announceNewData":', announceNewData?.toJSON(), ','], '');
  }
  if (axis != null) {
    buffer.writeAll(['"axis":', axis?.toJSON(), ','], '');
  }
  if (chartContainerLabel != null) {
    buffer.writeAll(
        ['"chartContainerLabel":', jsonEncode(chartContainerLabel), ','], '');
  }
  if (chartTypes != null) {
    buffer.writeAll(['"chartTypes":', chartTypes?.toJSON(), ','], '');
  }
  if (credits != null) {
    buffer.writeAll(['"credits":', jsonEncode(credits), ','], '');
  }
  if (defaultChartTitle != null) {
    buffer.writeAll(
        ['"defaultChartTitle":', jsonEncode(defaultChartTitle), ','], '');
  }
  if (drillUpButton != null) {
    buffer.writeAll(['"drillUpButton":', jsonEncode(drillUpButton), ','], '');
  }
  if (exporting != null) {
    buffer.writeAll(['"exporting":', exporting?.toJSON(), ','], '');
  }
  if (graphicContainerLabel != null) {
    buffer.writeAll(
        ['"graphicContainerLabel":', jsonEncode(graphicContainerLabel), ','],
        '');
  }
  if (legend != null) {
    buffer.writeAll(['"legend":', legend?.toJSON(), ','], '');
  }
  if (navigator != null) {
    buffer.writeAll(['"navigator":', navigator?.toJSON(), ','], '');
  }
  if (rangeSelector != null) {
    buffer.writeAll(['"rangeSelector":', rangeSelector?.toJSON(), ','], '');
  }
  if (resetZoomButton != null) {
    buffer.writeAll(
        ['"resetZoomButton":', jsonEncode(resetZoomButton), ','], '');
  }
  if (screenReaderSection != null) {
    buffer.writeAll(
        ['"screenReaderSection":', screenReaderSection?.toJSON(), ','], '');
  }
  if (series != null) {
    buffer.writeAll(['"series":', series?.toJSON(), ','], '');
  }
  if (seriesTypeDescriptions != null) {
    buffer.writeAll(
        ['"seriesTypeDescriptions":', seriesTypeDescriptions?.toJSON(), ','],
        '');
  }
  if (sonification != null) {
    buffer.writeAll(['"sonification":', sonification?.toJSON(), ','], '');
  }
  if (svgContainerLabel != null) {
    buffer.writeAll(
        ['"svgContainerLabel":', jsonEncode(svgContainerLabel), ','], '');
  }
  if (svgContainerTitle != null) {
    buffer.writeAll(
        ['"svgContainerTitle":', jsonEncode(svgContainerTitle), ','], '');
  }
  if (table != null) {
    buffer.writeAll(['"table":', table?.toJSON(), ','], '');
  }
  if (thousandsSep != null) {
    buffer.writeAll(['"thousandsSep":', jsonEncode(thousandsSep), ','], '');
  }
  if (zoom != null) {
    buffer.writeAll(['"zoom":', zoom?.toJSON(), ','], '');
  }
}