Commit 1fae79bc authored by tom's avatar tom

add units to fullscreen graphs

parent 4908184b
......@@ -274,6 +274,7 @@ const ChartWidget = ({ items, title, description, isLoading, className, isError,
title={ title }
description={ description }
onClose={ clearFullscreenChart }
units={ units }
/>
) }
</>
......
......@@ -13,6 +13,7 @@ type Props = {
description?: string;
items: Array<TimeChartItem>;
onClose: () => void;
units?: string;
}
const FullscreenChartModal = ({
......@@ -20,6 +21,7 @@ const FullscreenChartModal = ({
title,
description,
items,
units,
onClose,
}: Props) => {
const [ isZoomResetInitial, setIsZoomResetInitial ] = React.useState(true);
......@@ -94,6 +96,7 @@ const FullscreenChartModal = ({
margin={{ bottom: 60 }}
isEnlarged
items={ items }
units={ units }
onZoom={ handleZoom }
isZoomResetInitial={ isZoomResetInitial }
title={ title }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment