renderGaugeChart method

  1. @override
RenderedApexCharts renderGaugeChart(
  1. Element output,
  2. ChartSet chartData
)
override

Renders a Horizontal Bar Chart:

Implementation

@override
RenderedApexCharts renderGaugeChart(Element output, ChartSet chartData) {
  checkRenderParameters(output, chartData);
  checkLoaded();

  var div = asDivElement(output);

  var set =
      chartData.options.sortCategories ? chartData.setSorted : chartData.set;

  chartData.ensureColors(colorGenerator);

  var colors = chartData.colors!;

  var renderArgs = [
    div,
    chartData.title,
    chartData.xTitle,
    chartData.yTitle,
    JsObject.jsify(chartData.xLabels),
    _xAxisMinMax(chartData),
    _yAxisMinMax(chartData),
    JsObject.jsify(set),
    JsObject.jsify(colors),
  ];

  var chartObject = _jsWrapper!.callMethod('renderGauge', renderArgs);

  return RenderedApexCharts(this, 'gauge', chartObject, chartData);
}