Hi,
I am using a UI5 chart for selecting items by mapping each item to a data point in the chart and then handling the chart's SelectData event. Works fine and looks great, but there's a small problem: I would need to have exactly one item selected at any given time. I know how to configure the chart for single selection, but in addition my program would need to:
- select a data point initially and
- re-select a a data point in case of a DeselectData event (cancelling the DeselectData action does not seem to work - there is a "preventDefault" method in the event, but it does not seem to revert the user's de-select action)
Does anybody know how to select a data point in a UI5 chart programmatically? Is there some method in the viz library I can use? Or is there any other trick, e.g. for finding and "clicking" the DOM element that represents the data point with jQuery?
I was hoping the "fireSelectData" method would do the job, but it just seems to raise the event to everyone who's listening, but it does not change the selection in the UI.
Any hint would be appreciated
Peter