renderScatterChart method
Renders a Scatter Chart with X,Y pairs:
Implementation
@override
RenderedChartJS renderScatterChart(
Element output, ChartSeriesPair chartSeries) {
checkRenderParameters(output, chartSeries);
checkLoaded();
var canvas = asCanvasElement(output);
var seriesPairs = chartSeries.seriesAsPairsOfMap(
sortSeriesByCategory: chartSeries.options.sortCategories);
chartSeries.ensureColors(colorGenerator);
var colors = chartSeries.colors!;
var renderArgs = [
canvas,
chartSeries.title,
chartSeries.xTitle,
chartSeries.yTitle,
_xAxisMinMax(chartSeries),
_yAxisMinMax(chartSeries),
JsObject.jsify(seriesPairs),
_verticalLinesConfig(chartSeries),
JsObject.jsify(colors),
_onClick(chartSeries)
];
var chartObject = _jsWrapper!.callMethod('renderScatter', renderArgs);
return RenderedChartJS(this, 'scatter', chartObject, chartSeries);
}