on 03-07-2016 6:29 AM
Hi experts
I am developing Fiori application using XML views and JS controllers. I am using chart container for displaying charts(SAPUI5 Explored)
here when i click on the bar i need to get the corresponding value on y axis,for example if i click first bar i should get africa, in my view i have
assign selectData="myOnClickHandler" function for viz:VizFrame and i have defined myOnClickHandler function in my controller,
<viz:VizFrame height="350px" id="idoVizFrame" selectData="myOnClickHandler" uiConfig="{applicationSet:'fiori'}" width="100%"></viz:VizFrame>
Thanks
Set a breakpoint in the "myOnClickHandler" event handler in the developer tool of the browser and explore the parameters present in oEvent.
For example, for chart present at following location
we can fetch the y-axis header using the following
oEvent.mParameters.data[0].data["Store Name"] this will give "A&A"
Regards,
Sarbjeet Singh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
78 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.