abap2UI5 / abap2UI5

Developing UI5 Apps Purely in ABAP
http://www.abap2UI5.org
MIT License
295 stars 58 forks source link

displayedBars not available for InteractiveBarChart #1057

Closed shivushedad closed 7 months ago

shivushedad commented 7 months ago

We are trying to build an interactive bar chart using abap2UI5 and cannot seem to override / set the value of displayedBars value to higher than the default value of 3.

Per the documentation linked above we were supposed to have the displayedBars property available to be passed when creating bar chart object. Am I missing anything?

oblomov-dev commented 7 months ago

Hi @shivushedad, so far you do it right, you can just overwrite the property in the backend and then the frontend uses this updated value. Can you share a little sample app with your problem? Then we can take a look to it and see how to fix it. Best regards.

shivushedad commented 7 months ago

Thank you for your reply!

I copied Z2UI5_CL_DEMO_APP_016 from the abap2UI5-samples repo and tried to add labelwidth and displayedBars after line 65 and I get a syntax error indicating Formal parameter "DISPLAYEDBARS" does not exist.. Parameter labelwidth gets added with no syntax errors.

image

oblomov-dev commented 7 months ago

added now the property with https://github.com/abap2UI5/abap2UI5/pull/1061 check out the demo 16 again.

If you are familiar with GitHub and PRs, feel free to extend the XML View Class with the properties you need and sent a PR.

shivushedad commented 7 months ago

@oblomov-dev thank you for the PR. I am now able to see the displayedBars property available. Closing the issue.