toOptionsJSON method

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

Implementation

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

  if (accessibility != null) {
    buffer.writeAll(['"accessibility":', accessibility?.toJSON(), ','], '');
  }
  if (allowPointSelect != null) {
    buffer.writeAll(['"allowPointSelect":', allowPointSelect, ','], '');
  }
  if (animation != null) {
    buffer.writeAll(['"animation":', jsonEncode(animation), ','], '');
  }
  if (animationLimit != null) {
    buffer.writeAll(['"animationLimit":', animationLimit, ','], '');
  }
  if (className != null) {
    buffer.writeAll(['"className":', jsonEncode(className), ','], '');
  }
  if (clip != null) {
    buffer.writeAll(['"clip":', clip, ','], '');
  }
  if (color != null) {
    buffer.writeAll(['"color":', jsonEncode(color), ','], '');
  }
  if (colorAxis != null) {
    buffer.writeAll(['"colorAxis":', jsonEncode(colorAxis), ','], '');
  }
  if (colorIndex != null) {
    buffer.writeAll(['"colorIndex":', colorIndex, ','], '');
  }
  if (colorKey != null) {
    buffer.writeAll(['"colorKey":', jsonEncode(colorKey), ','], '');
  }
  if (compare != null) {
    buffer.writeAll(['"compare":', jsonEncode(compare), ','], '');
  }
  if (compareBase != null) {
    buffer.writeAll(['"compareBase":', compareBase, ','], '');
  }
  if (compareStart != null) {
    buffer.writeAll(['"compareStart":', compareStart, ','], '');
  }
  if (connectEnds != null) {
    buffer.writeAll(['"connectEnds":', connectEnds, ','], '');
  }
  if (connectNulls != null) {
    buffer.writeAll(['"connectNulls":', connectNulls, ','], '');
  }
  if (crisp != null) {
    buffer.writeAll(['"crisp":', crisp, ','], '');
  }
  if (cropThreshold != null) {
    buffer.writeAll(['"cropThreshold":', cropThreshold, ','], '');
  }
  if (cumulative != null) {
    buffer.writeAll(['"cumulative":', cumulative, ','], '');
  }
  if (cumulativeStart != null) {
    buffer.writeAll(['"cumulativeStart":', cumulativeStart, ','], '');
  }
  if (cursor != null) {
    buffer.writeAll(['"cursor":', jsonEncode(cursor), ','], '');
  }
  if (custom != null) {
    buffer.write('"custom":{');
    for (var item in custom!.entries) {
      buffer.writeAll(['"', item.key, '":', jsonEncode(item.value), ','], '');
    }
    buffer.write('},');
  }
  if (dashStyle != null) {
    buffer.writeAll(['"dashStyle":', jsonEncode(dashStyle), ','], '');
  }
  if (dataGrouping != null) {
    buffer.writeAll(['"dataGrouping":', dataGrouping?.toJSON(), ','], '');
  }
  if (dataLabels != null) {
    buffer.write('"dataLabels":[');
    for (var item in dataLabels!) {
      buffer.writeAll([item.toJSON(), ','], '');
    }
    buffer.write('],');
  }
  if (dataSorting != null) {
    buffer.writeAll(['"dataSorting":', dataSorting?.toJSON(), ','], '');
  }
  if (description != null) {
    buffer.writeAll(['"description":', jsonEncode(description), ','], '');
  }
  if (dragDrop != null) {
    buffer.writeAll(['"dragDrop":', dragDrop?.toJSON(), ','], '');
  }
  if (enableMouseTracking != null) {
    buffer.writeAll(['"enableMouseTracking":', enableMouseTracking, ','], '');
  }
  if (events != null) {
    buffer.writeAll(['"events":', events?.toJSON(), ','], '');
  }
  if (fillColor != null) {
    buffer.writeAll(['"fillColor":', jsonEncode(fillColor), ','], '');
  }
  if (fillOpacity != null) {
    buffer.writeAll(['"fillOpacity":', fillOpacity, ','], '');
  }
  if (findNearestPointBy != null) {
    buffer.writeAll(
        ['"findNearestPointBy":', jsonEncode(findNearestPointBy), ','], '');
  }
  if (gapSize != null) {
    buffer.writeAll(['"gapSize":', gapSize, ','], '');
  }
  if (gapUnit != null) {
    buffer.writeAll(['"gapUnit":', jsonEncode(gapUnit), ','], '');
  }
  if (getExtremesFromAll != null) {
    buffer.writeAll(['"getExtremesFromAll":', getExtremesFromAll, ','], '');
  }
  if (id != null) {
    buffer.writeAll(['"id":', jsonEncode(id), ','], '');
  }
  if (inactiveOtherPoints != null) {
    buffer.writeAll(['"inactiveOtherPoints":', inactiveOtherPoints, ','], '');
  }
  if (includeInDataExport != null) {
    buffer.writeAll(['"includeInDataExport":', includeInDataExport, ','], '');
  }
  if (index != null) {
    buffer.writeAll(['"index":', index, ','], '');
  }
  if (keys != null) {
    buffer.write('"keys":[');
    for (var item in keys!) {
      buffer.writeAll([jsonEncode(item), ','], '');
    }
    buffer.write('],');
  }
  if (label != null) {
    buffer.writeAll(['"label":', label?.toJSON(), ','], '');
  }
  if (lastPrice != null) {
    buffer.writeAll(['"lastPrice":', lastPrice?.toJSON(), ','], '');
  }
  if (lastVisiblePrice != null) {
    buffer.writeAll(
        ['"lastVisiblePrice":', lastVisiblePrice?.toJSON(), ','], '');
  }
  if (legendIndex != null) {
    buffer.writeAll(['"legendIndex":', legendIndex, ','], '');
  }
  if (legendSymbol != null) {
    buffer.writeAll(['"legendSymbol":', jsonEncode(legendSymbol), ','], '');
  }
  if (legendSymbolColor != null) {
    buffer.writeAll(
        ['"legendSymbolColor":', jsonEncode(legendSymbolColor), ','], '');
  }
  if (lineColor != null) {
    buffer.writeAll(['"lineColor":', jsonEncode(lineColor), ','], '');
  }
  if (lineWidth != null) {
    buffer.writeAll(['"lineWidth":', lineWidth, ','], '');
  }
  if (linecap != null) {
    buffer.writeAll(['"linecap":', jsonEncode(linecap), ','], '');
  }
  if (linkedTo != null) {
    buffer.writeAll(['"linkedTo":', jsonEncode(linkedTo), ','], '');
  }
  if (marker != null) {
    buffer.writeAll(['"marker":', marker?.toJSON(), ','], '');
  }
  if (navigatorOptions != null) {
    buffer.writeAll(
        ['"navigatorOptions":', jsonEncode(navigatorOptions), ','], '');
  }
  if (negativeColor != null) {
    buffer.writeAll(['"negativeColor":', jsonEncode(negativeColor), ','], '');
  }
  if (negativeFillColor != null) {
    buffer.writeAll(
        ['"negativeFillColor":', jsonEncode(negativeFillColor), ','], '');
  }
  if (nullInteraction != null) {
    buffer.writeAll(['"nullInteraction":', nullInteraction, ','], '');
  }
  if (onPoint != null) {
    buffer.writeAll(['"onPoint":', onPoint?.toJSON(), ','], '');
  }
  if (opacity != null) {
    buffer.writeAll(['"opacity":', opacity, ','], '');
  }
  if (point != null) {
    buffer.writeAll(['"point":', point?.toJSON(), ','], '');
  }
  if (pointDescriptionFormat != null) {
    buffer.writeAll([
      '"pointDescriptionFormat":',
      jsonEncode(pointDescriptionFormat),
      ','
    ], '');
  }
  if (pointDescriptionFormatter != null) {
    buffer.writeAll([
      '"pointDescriptionFormatter":',
      jsonEncode(pointDescriptionFormatter),
      ','
    ], '');
  }
  if (pointInterval != null) {
    buffer.writeAll(['"pointInterval":', pointInterval, ','], '');
  }
  if (pointIntervalUnit != null) {
    buffer.writeAll(
        ['"pointIntervalUnit":', jsonEncode(pointIntervalUnit), ','], '');
  }
  if (pointPlacement != null) {
    buffer
        .writeAll(['"pointPlacement":', jsonEncode(pointPlacement), ','], '');
  }
  if (pointRange != null) {
    buffer.writeAll(['"pointRange":', pointRange, ','], '');
  }
  if (pointStart != null) {
    buffer.writeAll(['"pointStart":', jsonEncode(pointStart), ','], '');
  }
  if (relativeXValue != null) {
    buffer.writeAll(['"relativeXValue":', relativeXValue, ','], '');
  }
  if (selected != null) {
    buffer.writeAll(['"selected":', selected, ','], '');
  }
  if (shadow != null) {
    buffer.write('"shadow":{');
    for (var item in shadow!.entries) {
      buffer.writeAll(['"', item.key, '":', jsonEncode(item.value), ','], '');
    }
    buffer.write('},');
  }
  if (showCheckbox != null) {
    buffer.writeAll(['"showCheckbox":', showCheckbox, ','], '');
  }
  if (showInLegend != null) {
    buffer.writeAll(['"showInLegend":', showInLegend, ','], '');
  }
  if (showInNavigator != null) {
    buffer.writeAll(['"showInNavigator":', showInNavigator, ','], '');
  }
  if (skipKeyboardNavigation != null) {
    buffer.writeAll(
        ['"skipKeyboardNavigation":', skipKeyboardNavigation, ','], '');
  }
  if (softThreshold != null) {
    buffer.writeAll(['"softThreshold":', softThreshold, ','], '');
  }
  if (sonification != null) {
    buffer.writeAll(['"sonification":', sonification?.toJSON(), ','], '');
  }
  if (stack != null) {
    buffer.writeAll(['"stack":', jsonEncode(stack), ','], '');
  }
  if (stacking != null) {
    buffer.writeAll(['"stacking":', jsonEncode(stacking), ','], '');
  }
  if (states != null) {
    buffer.writeAll(['"states":', states?.toJSON(), ','], '');
  }
  if (stickyTracking != null) {
    buffer.writeAll(['"stickyTracking":', stickyTracking, ','], '');
  }
  if (threshold != null) {
    buffer.writeAll(['"threshold":', threshold, ','], '');
  }
  if (tooltip != null) {
    buffer.writeAll(['"tooltip":', tooltip?.toJSON(), ','], '');
  }
  if (trackByArea != null) {
    buffer.writeAll(['"trackByArea":', trackByArea, ','], '');
  }
  if (turboThreshold != null) {
    buffer.writeAll(['"turboThreshold":', turboThreshold, ','], '');
  }
  if (visible != null) {
    buffer.writeAll(['"visible":', visible, ','], '');
  }
  if (xAxis != null) {
    buffer.writeAll(['"xAxis":', jsonEncode(xAxis), ','], '');
  }
  if (yAxis != null) {
    buffer.writeAll(['"yAxis":', jsonEncode(yAxis), ','], '');
  }
  if (zIndex != null) {
    buffer.writeAll(['"zIndex":', zIndex, ','], '');
  }
  if (zoneAxis != null) {
    buffer.writeAll(['"zoneAxis":', jsonEncode(zoneAxis), ','], '');
  }
  if (zones != null) {
    buffer.write('"zones":[');
    for (var item in zones!) {
      buffer.writeAll([item.toJSON(), ','], '');
    }
    buffer.write('],');
  }
  if (zoomEnabled != null) {
    buffer.writeAll(['"zoomEnabled":', zoomEnabled, ','], '');
  }
}