cancel
Showing results for 
Search instead for 
Did you mean: 

SAPUI5 SmartChart display values in Chart

christoph_buehlmann
Participant

Dear Experts

I have a SmartChart with 3 Columns. Defined in the annotation File in WebIDE.

Now I try to fix two Things in my Chart. Can anybody tell me how to:

- Display the actual value of a column in the chart? Which annotation in the annotation modeler in SAP WebIDE will do this?

- How to set a fixed scale in the y-axis? I have two column charts in the same view and would like to use the same scale on both of them.

Thanks for you support.

Christophe

View Entire Topic
aqibpathan
Participant
0 Kudos

Hi!

Answer to your first query, please write below code in onInit() method

var oSmartChart = this.getView().byId("YOUR SMARTCHART CONTROL ID");

oSmartChart.attachInitialized(

function(oControlEvent)

{

oSmartChart.getChartAsync().then(

function(oInnerChart)

{

oInnerChart.setVizProperties({

plotArea: {

dataLabel: {

visible: true

}

}

});

}

);

}

);

Thanks,

AQIB