cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot able to set the fraction dynamically for harveyballmicrochart

Former Member
0 Kudos

Hi experts,

               In one of my sapui5 application i used  HarveyBallMicroChart, here my requirement is  need to change the fraction of HarveyBallMicroChartItem dynamically when i am trying to change it is not allowing. I used the following code

                           window.view.getView().byId("hbmcId").getItems().setFraction();

It is showing the error setFraction is not a function(…). could any one help me to fix this issue or is there any other way to change the fraction value  of HarveyBallMicroChartItem dynamically

Thanks in advance and Regards

Bhanu

Accepted Solutions (0)

Answers (1)

Answers (1)

jmoors
Active Contributor
0 Kudos

Without seeing all you code it's difficult to comment, however it looks like the getItems method returns an Array of HarveyBallMicroChartItem[], therefore you are trying to call the setFraction on the array rather than the individual items. You will need to iterate through the items.

Many thanks,

Jason