From 322639fa6f2b7d09ca47005151b7aa1f7e2a5932 Mon Sep 17 00:00:00 2001 From: Eduard Carrerars Date: Mon, 15 Jul 2024 15:38:17 +0200 Subject: [PATCH] feat(graph): add slider to y-axis --- src/widgets/views/Graph/GraphChartComp.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/widgets/views/Graph/GraphChartComp.tsx b/src/widgets/views/Graph/GraphChartComp.tsx index ba77cac91..7e94a8288 100644 --- a/src/widgets/views/Graph/GraphChartComp.tsx +++ b/src/widgets/views/Graph/GraphChartComp.tsx @@ -197,5 +197,10 @@ function getGraphProps(props: GetGraphPropsType) { max: maxValue + margin, }; } + if (type === "line" && ooui.y_range === "slider") { + graphProps.slider = { + y: { labelFormatter: "~s" }, + }; + } return graphProps; }