Skip to Content
author's profile photo Former Member
Former Member

Cannot able to set the fraction dynamically for harveyballmicrochart

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Dec 08, 2015 at 09:49 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.