on 10-03-2019 3:14 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
65 | |
8 | |
7 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.