cancel
Showing results for 
Search instead for 
Did you mean: 

missing data labels in VizFrame control

Former Member
0 Kudos

Hello,

I'm programming an analytical Fiori App with SAPUI5 which includes different charts and visualization for the data. I have already implemented a few VizFrame controls and everything is fine with them, but now I get the following issue:

- if I navigate to this page from another page before I can see the VizFrame control but the data labels are missing completly (see screenshot)

- the page I navigate to has an own routing pattern. For that, if I reload the page the data labels are here (see screenshot)

I don't change the properties of the VizFrame control between these two actions. I implemented this page as a standalone XML view which can be called directly via routing in the manifest.json or by clicking a button on the page before. The relevant codes are:

manifest.json

and the routing call when clicking on the button (btw it's a circle on a map) of the previous page:

So both times just the XML view is loaded. But when it is loaded from the onCircleClick function the data labes are missing and when it is called directly from the generated hash the data labels are available.

Has anyone an idea how to resolve this issue?

Thanks, Marietta

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member196805
Contributor
0 Kudos

Its' hard to find the root cause if the same XML view looks difference due to the different launching routes.

Data label visualization is impacted by the size availability (if chart property on XML view was not modified at runtime) but size of both charts are idential.

Any chance for your to replication this issue on http://jsbin.com ?

Former Member
0 Kudos

Thanks Chapman Wong for your reply.

I get a jsbin with small data from my application.. although the routing isn't working correctly by now

by clicking on the button the chart is displayed but the hash didn't change: http://output.jsbin.com/wulalatolu/2

and here the version with the direct hash: http://output.jsbin.com/wulalatolu/2#region

former_member196805
Contributor
0 Kudos

Hello Marietta,

it seems data labels on every vizFrame added by pressing the button are correctly shown. Are there any demo you could share?

BR,

Chapman

Former Member
0 Kudos

Hello Chapman,

yes I was able to get a simple working example on HCP Coud. Here is the link: https://testdatalabel-p1941927698trial.dispatcher.hanatrial.ondemand.com/

This example behaves a litte different than my original one. The first time you click on a circle on the map the values are displayed, but if you then go back and get another circle the value labels are missing. Same on the direct hash.