I'm not sure what this prop does, I can't find it in the ApexCharts documentation. What are you expecting it to do?
Also, where did you get self.dispatch("hoverUpdateControl", {update: false}); from?
Irregardless, I can help with the mouse events.
1. Using JavaScript in Props
In order to use JavaScript in an Embr-Charts props, it must be in the form of an arrow function:
// events.dom.onMouseEnter
() => { console.log('onMouseEnter') }
2. Sending a Message from JavaScript
To send a message from Embr's JavaScript context, you use perspective.sendMessage(type, payload, scope):
#TODO: Add this to the docs.#
// events.dom.onMouseEnter
() => {
console.log('onMouseEnter')
const payload = {}
perspective.sendMessage('onMouseEnter' , payload, 'view')
}
However, you don't really need to get this fancy, you could be using the default component Mouse Events/onMouseEnter and Mouse Events/onMouseLeave events.
The advantage of Embr's dedicated events callbacks are that they run directly in the client. If you aren't using this feature, Ignition's regular event system will serve you just fine.
3. Setting a Property Directly from a DOM event
If you want to get fancy, you can set props.options.plotOptions.line.update directly from the client's DOM event.
This removes an update cycle from the interaction and is the most immediate way of setting a property.
// events.dom.onMouseEnter
() => {
const path = 'options.plotOptions.line.update'
this.store.props.write(path, true)
}
// events.dom.onMouseLeave
() => {
const path = 'options.plotOptions.line.update'
this.store.props.write(path, false)
}