XYChart inside Screen fragment does not show up

I created a screen fragment to show an XY graph which I intend to call from two different screens.
I inserted the fragment call into one host screen XML but the graph does not show up.
The host screen is a browse screen for entity WcgEnvelope and the fragment is supposed to show a graph for instance of entity WcgLineSegment. There is a composition of WcgEnvelope in relation to WcgLineSegment

Host screen XML:
image

Fragment XML:
image

I have checked the “wslDC” data container and it contains 8 instances.
Any clue on what is the problem?

Thanks,

Ramiro.

Hi Ramiro!

I guess the component can’t be displayed due to the fact that the chars has a height and width - 100%.

The best way to fix it is to set the height and width for the <fragment> in the host screen.
Also, you can try to set a specific value of height and width for the chart or for the layout in which it is contained.

Regards,
Dmitriy

Thanks Dmitriy!

That gave me a way to go. I will play with the attributes here and try to understand the logic behind components positioning.

1 Like