Hi All,
I facing using in chart, i am able to draw chat but can't access to chart data after selecting slice.
code:
Part1:
dimensions : [ {
axis : 1,
name : 'Floor',
value : "{Floor}"
} ],
// a scatter chart requires two measure groups:
measures : [
{
group: 1,
name : 'Total Desk',
value : '{Total}'
} ,
],
Part2:
var oScatterChart = new sap.viz.ui5.Donut({
width : "400px",
height : "400px",
line : {
//'colorPalette' : d3.scale.category20().range()
},
title : {
visible : true,
text : 'Profit and Revenue By Country'
},
showTooltip : function(oEvent) {
},
hideTooltip : function(oEvent) {
},
selectData : function(oEvent) {
console.log(oEvent.getParameter("data") //
/// i am able to get measures values but cant dimensions values.
// how to gets these values on Slice select?
},
deselectData : function(oEvent) {
console.log("deselectData fired with data of length " + oEvent.getParameter("data").length);
},
legendGroup: new sap.viz.ui5.types.Legend({
layout: { position: sap.viz.ui5.types.Legend_layout_position.left}
}),
dataset : oScatterDataset
});
Thanks and regards
-Ashish