|
|
|
@ -47,8 +47,12 @@ export function ChartwerkLinePod(props: ChartwerkLinePodProps) {
|
|
|
|
|
setPod(newPod); |
|
|
|
|
newPod.render(); |
|
|
|
|
} else { |
|
|
|
|
if(props.markersConf) { |
|
|
|
|
pod.updateMarkers(props.markersConf); |
|
|
|
|
} |
|
|
|
|
if(props.segments) { |
|
|
|
|
pod.updateSegments(props.segments); |
|
|
|
|
} |
|
|
|
|
// TODO: actually it's wrong logic with updates
|
|
|
|
|
// because it creates new pod anyway
|
|
|
|
|
pod.updateData(props.series, props.options); |
|
|
|
|