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 (borderColor != null) {
buffer.writeAll(['"borderColor":', jsonEncode(borderColor), ','], '');
}
if (borderWidth != null) {
buffer.writeAll(['"borderWidth":', borderWidth, ','], '');
}
if (className != null) {
buffer.writeAll(['"className":', jsonEncode(className), ','], '');
}
if (clip != null) {
buffer.writeAll(['"clip":', clip, ','], '');
}
if (collapseButton != null) {
buffer.writeAll(['"collapseButton":', collapseButton?.toJSON(), ','], '');
}
if (color != null) {
buffer.writeAll(['"color":', jsonEncode(color), ','], '');
}
if (colorByPoint != null) {
buffer.writeAll(['"colorByPoint":', colorByPoint, ','], '');
}
if (colorIndex != null) {
buffer.writeAll(['"colorIndex":', colorIndex, ','], '');
}
if (colors != null) {
buffer.write('"colors":[');
for (var item in colors!) {
buffer.writeAll([jsonEncode(item), ','], '');
}
buffer.write('],');
}
if (crisp != null) {
buffer.writeAll(['"crisp":', crisp, ','], '');
}
if (cropThreshold != null) {
buffer.writeAll(['"cropThreshold":', cropThreshold, ','], '');
}
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 (dataLabels != null) {
buffer.writeAll(['"dataLabels":', dataLabels?.toJSON(), ','], '');
}
if (description != null) {
buffer.writeAll(['"description":', jsonEncode(description), ','], '');
}
if (enableMouseTracking != null) {
buffer.writeAll(['"enableMouseTracking":', enableMouseTracking, ','], '');
}
if (events != null) {
buffer.writeAll(['"events":', events?.toJSON(), ','], '');
}
if (fillSpace != null) {
buffer.writeAll(['"fillSpace":', fillSpace, ','], '');
}
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 (levels != null) {
buffer.write('"levels":[');
for (var item in levels!) {
buffer.writeAll([item.toJSON(), ','], '');
}
buffer.write('],');
}
if (link != null) {
buffer.writeAll(['"link":', link?.toJSON(), ','], '');
}
if (linkedTo != null) {
buffer.writeAll(['"linkedTo":', jsonEncode(linkedTo), ','], '');
}
if (marker != null) {
buffer.writeAll(['"marker":', marker?.toJSON(), ','], '');
}
if (nodeDistance != null) {
buffer.writeAll(['"nodeDistance":', jsonEncode(nodeDistance), ','], '');
}
if (nodeWidth != null) {
buffer.writeAll(['"nodeWidth":', jsonEncode(nodeWidth), ','], '');
}
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 (reversed != null) {
buffer.writeAll(['"reversed":', reversed, ','], '');
}
if (selected != null) {
buffer.writeAll(['"selected":', selected, ','], '');
}
if (showCheckbox != null) {
buffer.writeAll(['"showCheckbox":', showCheckbox, ','], '');
}
if (showInLegend != null) {
buffer.writeAll(['"showInLegend":', showInLegend, ','], '');
}
if (skipKeyboardNavigation != null) {
buffer.writeAll(
['"skipKeyboardNavigation":', skipKeyboardNavigation, ','], '');
}
if (sonification != null) {
buffer.writeAll(['"sonification":', sonification?.toJSON(), ','], '');
}
if (states != null) {
buffer.writeAll(['"states":', states?.toJSON(), ','], '');
}
if (stickyTracking != null) {
buffer.writeAll(['"stickyTracking":', stickyTracking, ','], '');
}
if (tooltip != null) {
buffer.writeAll(['"tooltip":', tooltip?.toJSON(), ','], '');
}
if (traverseToLeaf != null) {
buffer.writeAll(['"traverseToLeaf":', traverseToLeaf, ','], '');
}
if (turboThreshold != null) {
buffer.writeAll(['"turboThreshold":', turboThreshold, ','], '');
}
if (visible != null) {
buffer.writeAll(['"visible":', visible, ','], '');
}
if (zIndex != null) {
buffer.writeAll(['"zIndex":', zIndex, ','], '');
}
if (zoomEnabled != null) {
buffer.writeAll(['"zoomEnabled":', zoomEnabled, ','], '');
}
}