|
|
@ -95,13 +95,9 @@ export const ChartwerkLinePod = forwardRef<HTMLDivElement, PropsWithChildren<Cha |
|
|
|
eventsCallbacks, |
|
|
|
eventsCallbacks, |
|
|
|
} |
|
|
|
} |
|
|
|
); |
|
|
|
); |
|
|
|
setPod( |
|
|
|
setPod(newPod); |
|
|
|
newPod |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
console.log('initial chart render'); |
|
|
|
|
|
|
|
newPod.render(); |
|
|
|
newPod.render(); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
console.log('update chart'); |
|
|
|
|
|
|
|
pod.updateData(props.series, { |
|
|
|
pod.updateData(props.series, { |
|
|
|
...props.options, |
|
|
|
...props.options, |
|
|
|
eventsCallbacks, |
|
|
|
eventsCallbacks, |
|
|
|