|
|
|
@ -22,8 +22,6 @@ export function Panel({ options, data, width, height, timeZone, timeRange, onCha
|
|
|
|
|
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
|
|
|
|
|
window.requestAnimationFrame(() => { |
|
|
|
|
// TODO: pass datapoints
|
|
|
|
|
// TODO: pass options
|
|
|
|
|
// TODO: switch / case pod type
|
|
|
|
|
const pod = new ChartwerkGaugePod( |
|
|
|
|
(chartContainer as any).current, |
|
|
|
|