Let's follow up this discussion at the Neptune Community
(this forum will be kept in read-only mode)
I'm trying out the Pie char (Complex).
I just set it up with a 2 record data table.
gives this chart:
I Then want to get the value from selection. using this java script.
// Retrieve the value for the chart
var data = oEvent.getParameter("data");
var value = data.data.val;
However it's not the value I want!, I want the CC, in this case 1020. Is this possible, and how ? I'm no java script expert :/
The viz objects are a bit complex to use to get values from Dimension and Measures.
You can try this coding:
var data = oEvent.getParameter("data"); var value = data.target.__data__.dimValueObjects.val;
I've tried inserted the snipet as you mentioned, However when I run the app, I get this error from debugger in chrome.
Uncaught TypeError: Cannot read property 'dimValueObjects' of undefined
Any idea ?