UNPKG

@hisptz/react-ui

Version:

A collection of reusable complex DHIS2 react ui components.

32 lines (28 loc) 588 B
import { getAllCategories, getPointSeries } from "../utils/chart"; import { DHIS2Chart } from "./index"; export class DHIS2LineChart extends DHIS2Chart { getHighchartsType() { return "line"; } getPlotOptions() { return { line: {} }; } getSeries() { return getPointSeries(this.analytics, this.config, "line"); } getXAxis() { return { type: "category", categories: getAllCategories(this.analytics, this.config), crosshair: true, labels: { enabled: true }, title: { text: "" } }; } }