|
|
@ -50,7 +50,7 @@ export function ChartwerkLinePod(props: ChartwerkLinePodProps) { |
|
|
|
useEffect(() => { |
|
|
|
useEffect(() => { |
|
|
|
if(chart === null) { return; } |
|
|
|
if(chart === null) { return; } |
|
|
|
|
|
|
|
|
|
|
|
let eventsCallbacks = _.cloneDeep(props.options.eventsCallbacks || {}); |
|
|
|
let eventsCallbacks = _.cloneDeep(props.options?.eventsCallbacks || {}); |
|
|
|
if (props.onZoomIn) { |
|
|
|
if (props.onZoomIn) { |
|
|
|
eventsCallbacks.zoomIn = props.onZoomIn; |
|
|
|
eventsCallbacks.zoomIn = props.onZoomIn; |
|
|
|
} |
|
|
|
} |
|
|
|