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":', animation?.toJSON(), ','], '');
}
if (animationLimit != null) {
buffer.writeAll(['"animationLimit":', animationLimit, ','], '');
}
if (borderColor != null) {
buffer.writeAll(['"borderColor":', jsonEncode(borderColor), ','], '');
}
if (borderRadius != null) {
buffer.write('"borderRadius":{');
for (var item in borderRadius!.entries) {
buffer.writeAll(['"', item.key, '":', jsonEncode(item.value), ','], '');
}
buffer.write('},');
}
if (borderWidth != null) {
buffer.writeAll(['"borderWidth":', borderWidth, ','], '');
}
if (centerInCategory != null) {
buffer.writeAll(['"centerInCategory":', centerInCategory, ','], '');
}
if (className != null) {
buffer.writeAll(['"className":', jsonEncode(className), ','], '');
}
if (color != null) {
buffer.writeAll(['"color":', jsonEncode(color), ','], '');
}
if (colorByPoint != null) {
buffer.writeAll(['"colorByPoint":', colorByPoint, ','], '');
}
if (colorIndex != null) {
buffer.writeAll(['"colorIndex":', colorIndex, ','], '');
}
if (colorKey != null) {
buffer.writeAll(['"colorKey":', jsonEncode(colorKey), ','], '');
}
if (colors != null) {
buffer.write('"colors":[');
for (var item in colors!) {
buffer.writeAll([jsonEncode(item), ','], '');
}
buffer.write('],');
}
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 (description != null) {
buffer.writeAll(['"description":', jsonEncode(description), ','], '');
}
if (edgeWidth != null) {
buffer.writeAll(['"edgeWidth":', edgeWidth, ','], '');
}
if (enableMouseTracking != null) {
buffer.writeAll(['"enableMouseTracking":', enableMouseTracking, ','], '');
}
if (events != null) {
buffer.writeAll(['"events":', events?.toJSON(), ','], '');
}
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 (legendIndex != null) {
buffer.writeAll(['"legendIndex":', legendIndex, ','], '');
}
if (legendSymbol != null) {
buffer.writeAll(['"legendSymbol":', jsonEncode(legendSymbol), ','], '');
}
if (legendSymbolColor != null) {
buffer.writeAll(
['"legendSymbolColor":', jsonEncode(legendSymbolColor), ','], '');
}
if (linkedTo != null) {
buffer.writeAll(['"linkedTo":', jsonEncode(linkedTo), ','], '');
}
if (maxFontSize != null) {
buffer.writeAll(['"maxFontSize":', maxFontSize, ','], '');
}
if (minFontSize != null) {
buffer.writeAll(['"minFontSize":', minFontSize, ','], '');
}
if (nullInteraction != null) {
buffer.writeAll(['"nullInteraction":', nullInteraction, ','], '');
}
if (onPoint != null) {
buffer.writeAll(['"onPoint":', onPoint?.toJSON(), ','], '');
}
if (opacity != null) {
buffer.writeAll(['"opacity":', opacity, ','], '');
}
if (placementStrategy != null) {
buffer.writeAll(
['"placementStrategy":', jsonEncode(placementStrategy), ','], '');
}
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 (relativeXValue != null) {
buffer.writeAll(['"relativeXValue":', relativeXValue, ','], '');
}
if (rotation != null) {
buffer.writeAll(['"rotation":', rotation?.toJSON(), ','], '');
}
if (selected != null) {
buffer.writeAll(['"selected":', selected, ','], '');
}
if (showInLegend != null) {
buffer.writeAll(['"showInLegend":', showInLegend, ','], '');
}
if (skipKeyboardNavigation != null) {
buffer.writeAll(
['"skipKeyboardNavigation":', skipKeyboardNavigation, ','], '');
}
if (sonification != null) {
buffer.writeAll(['"sonification":', sonification?.toJSON(), ','], '');
}
if (spiral != null) {
buffer.writeAll(['"spiral":', jsonEncode(spiral), ','], '');
}
if (stack != null) {
buffer.writeAll(['"stack":', jsonEncode(stack), ','], '');
}
if (states != null) {
buffer.writeAll(['"states":', states?.toJSON(), ','], '');
}
if (stickyTracking != null) {
buffer.writeAll(['"stickyTracking":', stickyTracking, ','], '');
}
if (style != null) {
buffer.write('"style":{');
for (var item in style!.entries) {
buffer.writeAll(['"', item.key, '":', jsonEncode(item.value), ','], '');
}
buffer.write('},');
}
if (tooltip != null) {
buffer.writeAll(['"tooltip":', tooltip?.toJSON(), ','], '');
}
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 (zoomEnabled != null) {
buffer.writeAll(['"zoomEnabled":', zoomEnabled, ','], '');
}
}