Hi there,
has anyone played with event handling in the sap.viz.ui charting controls?
When you click on a chart element it gets "selected" and all other elements are "greyed-out". You can select several elements in turn so you end up with a collection of selected elements. For example in the following screenshot I have selected all the China and France elements.
I would like to be able to do two things.
Firstly I want to identify the elements that have been selected (in the above sample this would be [China/Profit, China/Revenue, France/Profit & France/Revenue) so that I can perform subsequent processing using them as input. For example triggering a drill-down on just these elements.
I am finding that the SelectData event does not seem to pass enough data for me to determine this information. The ShowTooltip event passes this information in the event parameter "data.footer" - but this is not passed in the SelectData event. Even if this was passed it only contains the context for the current element that has been selected - not the full set of selected elements.
Secondly, in certain circumstances I would like to suppress the normal rendering when an element is selected. I want to stop the greying out of the rest of the chart when an element is selected if no drill-down available. Is there a way to stop propagation of events? And even if there is it seems to me that the rerendering of the chart happens before my event handler is called.
Thanks
Graham Robbo