UNPKG

@hisptz/react-ui

Version:

A collection of reusable complex DHIS2 react ui components.

43 lines (34 loc) 738 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.DHIS2LineChart = void 0; var _chart = require("../utils/chart"); var _index = require("./index"); class DHIS2LineChart extends _index.DHIS2Chart { getHighchartsType() { return "line"; } getPlotOptions() { return { line: {} }; } getSeries() { return (0, _chart.getPointSeries)(this.analytics, this.config, "line"); } getXAxis() { return { type: "category", categories: (0, _chart.getAllCategories)(this.analytics, this.config), crosshair: true, labels: { enabled: true }, title: { text: "" } }; } } exports.DHIS2LineChart = DHIS2LineChart;