toOptionsJSON method

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

Implementation

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

  if (alignThresholds != null) {
    buffer.writeAll(['"alignThresholds":', alignThresholds, ','], '');
  }
  if (alignTicks != null) {
    buffer.writeAll(['"alignTicks":', alignTicks, ','], '');
  }
  if (allowMutatingData != null) {
    buffer.writeAll(['"allowMutatingData":', allowMutatingData, ','], '');
  }
  if (animation != null) {
    buffer.writeAll(['"animation":', jsonEncode(animation), ','], '');
  }
  if (axisLayoutRuns != null) {
    buffer.writeAll(['"axisLayoutRuns":', axisLayoutRuns, ','], '');
  }
  if (backgroundColor != null) {
    buffer.writeAll(
        ['"backgroundColor":', jsonEncode(backgroundColor), ','], '');
  }
  if (borderColor != null) {
    buffer.writeAll(['"borderColor":', jsonEncode(borderColor), ','], '');
  }
  if (borderRadius != null) {
    buffer.writeAll(['"borderRadius":', borderRadius, ','], '');
  }
  if (borderWidth != null) {
    buffer.writeAll(['"borderWidth":', borderWidth, ','], '');
  }
  if (className != null) {
    buffer.writeAll(['"className":', jsonEncode(className), ','], '');
  }
  if (colorCount != null) {
    buffer.writeAll(['"colorCount":', colorCount, ','], '');
  }
  if (displayErrors != null) {
    buffer.writeAll(['"displayErrors":', displayErrors, ','], '');
  }
  if (events != null) {
    buffer.writeAll(['"events":', events?.toJSON(), ','], '');
  }
  if (height != null) {
    buffer.writeAll(['"height":', jsonEncode(height), ','], '');
  }
  if (ignoreHiddenSeries != null) {
    buffer.writeAll(['"ignoreHiddenSeries":', ignoreHiddenSeries, ','], '');
  }
  if (inverted != null) {
    buffer.writeAll(['"inverted":', inverted, ','], '');
  }
  if (map != null) {
    buffer.writeAll(['"map":', jsonEncode(map), ','], '');
  }
  if (mapTransforms != null) {
    buffer.writeAll(['"mapTransforms":', jsonEncode(mapTransforms), ','], '');
  }
  if (margin != null) {
    buffer.write('"margin":[');
    for (var item in margin!) {
      buffer.writeAll([item, ','], '');
    }
    buffer.write('],');
  }
  if (marginBottom != null) {
    buffer.writeAll(['"marginBottom":', marginBottom, ','], '');
  }
  if (marginLeft != null) {
    buffer.writeAll(['"marginLeft":', marginLeft, ','], '');
  }
  if (marginRight != null) {
    buffer.writeAll(['"marginRight":', marginRight, ','], '');
  }
  if (marginTop != null) {
    buffer.writeAll(['"marginTop":', marginTop, ','], '');
  }
  if (numberFormatter != null) {
    buffer
        .writeAll(['"numberFormatter":', numberFormatter?.toJSON(), ','], '');
  }
  if (options3d != null) {
    buffer.writeAll(['"options3d":', options3d?.toJSON(), ','], '');
  }
  if (panKey != null) {
    buffer.writeAll(['"panKey":', jsonEncode(panKey), ','], '');
  }
  if (panning != null) {
    buffer.writeAll(['"panning":', panning?.toJSON(), ','], '');
  }
  if (parallelAxes != null) {
    buffer.writeAll(['"parallelAxes":', parallelAxes?.toJSON(), ','], '');
  }
  if (parallelCoordinates != null) {
    buffer.writeAll(['"parallelCoordinates":', parallelCoordinates, ','], '');
  }
  if (pinchType != null) {
    buffer.writeAll(['"pinchType":', jsonEncode(pinchType), ','], '');
  }
  if (plotBackgroundColor != null) {
    buffer.writeAll(
        ['"plotBackgroundColor":', jsonEncode(plotBackgroundColor), ','], '');
  }
  if (plotBackgroundImage != null) {
    buffer.writeAll(
        ['"plotBackgroundImage":', jsonEncode(plotBackgroundImage), ','], '');
  }
  if (plotBorderColor != null) {
    buffer.writeAll(
        ['"plotBorderColor":', jsonEncode(plotBorderColor), ','], '');
  }
  if (plotBorderWidth != null) {
    buffer.writeAll(['"plotBorderWidth":', plotBorderWidth, ','], '');
  }
  if (plotShadow != null) {
    buffer.write('"plotShadow":{');
    for (var item in plotShadow!.entries) {
      buffer.writeAll(['"', item.key, '":', jsonEncode(item.value), ','], '');
    }
    buffer.write('},');
  }
  if (polar != null) {
    buffer.writeAll(['"polar":', polar, ','], '');
  }
  if (proj4 != null) {
    buffer.writeAll(['"proj4":', jsonEncode(proj4), ','], '');
  }
  if (reflow != null) {
    buffer.writeAll(['"reflow":', reflow, ','], '');
  }
  if (renderTo != null) {
    buffer.writeAll(['"renderTo":', jsonEncode(renderTo), ','], '');
  }
  if (resetZoomButton != null) {
    buffer
        .writeAll(['"resetZoomButton":', resetZoomButton?.toJSON(), ','], '');
  }
  if (scrollablePlotArea != null) {
    buffer.writeAll(
        ['"scrollablePlotArea":', scrollablePlotArea?.toJSON(), ','], '');
  }
  if (selectionMarkerFill != null) {
    buffer.write('"selectionMarkerFill":{');
    for (var item in selectionMarkerFill!.entries) {
      buffer.writeAll(['"', item.key, '":', jsonEncode(item.value), ','], '');
    }
    buffer.write('},');
  }
  if (shadow != null) {
    buffer.write('"shadow":{');
    for (var item in shadow!.entries) {
      buffer.writeAll(['"', item.key, '":', jsonEncode(item.value), ','], '');
    }
    buffer.write('},');
  }
  if (showAxes != null) {
    buffer.writeAll(['"showAxes":', showAxes, ','], '');
  }
  if (spacing != null) {
    buffer.write('"spacing":[');
    for (var item in spacing!) {
      buffer.writeAll([item, ','], '');
    }
    buffer.write('],');
  }
  if (spacingBottom != null) {
    buffer.writeAll(['"spacingBottom":', spacingBottom, ','], '');
  }
  if (spacingLeft != null) {
    buffer.writeAll(['"spacingLeft":', spacingLeft, ','], '');
  }
  if (spacingRight != null) {
    buffer.writeAll(['"spacingRight":', spacingRight, ','], '');
  }
  if (spacingTop != null) {
    buffer.writeAll(['"spacingTop":', spacingTop, ','], '');
  }
  if (style != null) {
    buffer.write('"style":{');
    for (var item in style!.entries) {
      buffer.writeAll(['"', item.key, '":', jsonEncode(item.value), ','], '');
    }
    buffer.write('},');
  }
  if (styledMode != null) {
    buffer.writeAll(['"styledMode":', styledMode, ','], '');
  }
  if (type != null) {
    buffer.writeAll(['"type":', jsonEncode(type), ','], '');
  }
  if (width != null) {
    buffer.writeAll(['"width":', jsonEncode(width), ','], '');
  }
  if (zoomKey != null) {
    buffer.writeAll(['"zoomKey":', jsonEncode(zoomKey), ','], '');
  }
  if (zoomType != null) {
    buffer.writeAll(['"zoomType":', jsonEncode(zoomType), ','], '');
  }
  if (zooming != null) {
    buffer.writeAll(['"zooming":', zooming?.toJSON(), ','], '');
  }
}