|
|
|
@ -47,9 +47,11 @@ export function ChartwerkLinePod(props: ChartwerkLinePodProps) {
|
|
|
|
|
setPod(newPod); |
|
|
|
|
newPod.render(); |
|
|
|
|
} else { |
|
|
|
|
// TODO: actually it's wrong logic with updates
|
|
|
|
|
// because it creates new pod anyway
|
|
|
|
|
pod.updateData(props.series, props.options); |
|
|
|
|
} |
|
|
|
|
}, [chart, pod, props.id, props.options, props.markersConf, props.segments]); |
|
|
|
|
}, [chart, props.id, props.options, props.markersConf, props.segments]); |
|
|
|
|
|
|
|
|
|
// TODO: it's a hack to render the LinePod right after the div appears in DOM
|
|
|
|
|
setTimeout(() => { |
|
|
|
|