toOptionsJSON method
Implementation
@override
void toOptionsJSON(StringBuffer buffer) {
super.toOptionsJSON(buffer);
if (index != null) {
buffer.writeAll(['"index":', index, ','], '');
}
if (period != null) {
buffer.writeAll(['"period":', period, ','], '');
}
if (xAxisUnit != null) {
buffer.writeAll(['"xAxisUnit":', xAxisUnit, ','], '');
}
}