diff --git a/src/components/Panel.tsx b/src/components/Panel.tsx index 9f41129..9363cdf 100644 --- a/src/components/Panel.tsx +++ b/src/components/Panel.tsx @@ -20,7 +20,7 @@ export function Panel({ options, data, width, height, timeZone, timeRange, onCha const chartwerkOptions = new Options(options).getChartwerkOptions(); let chartContainer = useRef(null); - // we request animation frame here because at the moment we need an existing DOM-element at the moment we render the pod + // we request animation frame here because we need an existing DOM-element at the moment we render the pod window.requestAnimationFrame(() => { // TODO: switch / case pod type const pod = new ChartwerkGaugePod(