in GUI Development by

Hello EW Team, I am using Eg: SimpleGraph and edited the Random Range to plot negative values. Generally, the quadrants of graph have positive value in upward quadrant but here it's opposite for Y axis. Line goes in upward for negative values of Y axis. Can you suggest something to make it visible like normal graph? Thanks in advance. Vandana Matai

Hello Team, I am using SimpleGraph example. I have edited Random Range to take negative values. As you can see, the plot goes up for negative values. Generally the axis for negative values of Y lies downward. What can I do to make it display like usual axis settings??

Thanks in advance,

Vandana Matai

1 Answer

0 votes

Hello Vandana Matai,

the origin of the entire GUI application is the upper left corner (0,0). Thus, the origin of the graph is also in the upper left corner and the X axis is going right and the Y axis is going down.

In order to adapt your graph you have several possibilities - depending on your implementation:

You can adapt your Y values so that they are following the default orientation, or if your graph is based on Component Template 'Graph' you can change the property ScaleY from 1.0 to -1.0 to get all values mirrored on the X-axis.

If you are using your own implementation based on StrokedPath you can use the property FlipY to achieve the same effect.

I hope this helps.

Best regards,


Thank you Manfred! Solved the query successfully.

Ask Embedded Wizard

Welcome to the question and answer site for Embedded Wizard users and UI developers.

Ask your question and receive answers from the Embedded Wizard support team or from other members of the community!

Embedded Wizard Website | Privacy Policy | Imprint