UNPKG

opendash

Version:

open.DASH data visualization framework

41 lines 2.26 kB
import * as React from "react"; import { useTranslation } from "../.."; import { VisualisationType } from "./types"; import { Description } from "./layout"; import { Settings as Timeseries } from "./step_3_timeseries"; import { Settings as Pie } from "./step_3_pie"; import { Settings as Heatmap } from "./step_3_heatmap"; import { Settings as Spider } from "./step_3_spider"; import { Settings as Histogramm } from "./step_3_histogramm"; import { Settings as Hierarchy } from "./step_3_hierarchy"; import { Settings as Kpi } from "./step_3_kpi"; import { Settings as Table } from "./step_3_table"; import { Settings as Raw } from "./step_3_raw"; export var Step3 = function (_a) { var state = _a.state, updateState = _a.updateState; var t = useTranslation(["opendash"])[0]; switch (state.visualisation) { case VisualisationType.TIMESERIES: return React.createElement(Timeseries, { state: state, updateState: updateState }); case VisualisationType.PIE: return React.createElement(Pie, { state: state, updateState: updateState }); case VisualisationType.HEATMAP: return React.createElement(Heatmap, { state: state, updateState: updateState }); case VisualisationType.SPIDER: return React.createElement(Spider, { state: state, updateState: updateState }); case VisualisationType.HISTOGRAMM: return React.createElement(Histogramm, { state: state, updateState: updateState }); case VisualisationType.HIERARCHY: return React.createElement(Hierarchy, { state: state, updateState: updateState }); case VisualisationType.KPI: return React.createElement(Kpi, { state: state, updateState: updateState }); case VisualisationType.TABLE: return React.createElement(Table, { state: state, updateState: updateState }); case VisualisationType.RAW: return React.createElement(Raw, { state: state, updateState: updateState }); default: return React.createElement(Description, { children: t("data_explorer.step_3_no_settings") }); } return React.createElement("span", null, "3"); }; //# sourceMappingURL=step_3.js.map