|
|
@ -22,8 +22,6 @@ export function Panel({ options, data, width, height, timeZone, timeRange, onCha |
|
|
|
let chartContainer = useRef(null); |
|
|
|
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 at the moment we need an existing DOM-element at the moment we render the pod
|
|
|
|
window.requestAnimationFrame(() => { |
|
|
|
window.requestAnimationFrame(() => { |
|
|
|
// TODO: pass datapoints
|
|
|
|
|
|
|
|
// TODO: pass options
|
|
|
|
|
|
|
|
// TODO: switch / case pod type
|
|
|
|
// TODO: switch / case pod type
|
|
|
|
const pod = new ChartwerkGaugePod( |
|
|
|
const pod = new ChartwerkGaugePod( |
|
|
|
(chartContainer as any).current, |
|
|
|
(chartContainer as any).current, |
|
|
|