renderScatterChart method
Renders a Scatter Chart with X,Y pairs:
Implementation
@override
RenderedApexCharts renderScatterChart(
Element output, ChartSeriesPair chartSeries) {
checkRenderParameters(output, chartSeries);
checkLoaded();
var div = asDivElement(output);
var seriesPairs = chartSeries.seriesAsPairsOfList(
sortSeriesByCategory: chartSeries.options.sortCategories);
chartSeries.ensureColors(colorGenerator);
var colors = chartSeries.colors!;
var yAxisScale = chartSeries.yAxisScale!;
var yMin = yAxisScale.minimumNice;
var yMax = yAxisScale.maximumNice;
var renderArgs = [
div,
chartSeries.title,
chartSeries.xTitle,
chartSeries.yTitle,
_xAxisMinMax(chartSeries),
_yAxisMinMax(chartSeries),
JsObject.jsify(seriesPairs),
_verticalLines(chartSeries),
JsObject.jsify(colors),
yMin,
yMax
];
var chartObject = _jsWrapper!.callMethod('renderScatter', renderArgs);
return RenderedApexCharts(this, 'scatter', chartObject, chartSeries);
}