I am using a 2D bar graph on a screen. It is pretty straight forward loading the graph values. When I display the screen, the graph is drawn on to the screen. When I select "stuff" from the screen to go to another screen and come back, the graph is drawn again even though the values haven't changed. This can get really annoying to the user when this graph keeps drawing every time the screen is displayed.
Is there a way to tell the graph to just display and not draw itself everytime?
2D Bar Graph Issue
-
- Experienced User
- Posts: 100
- Joined: Tue Feb 21, 2012 1:24 pm
- First Name: Robert
- Last Name: Mullis
- Company Name: WRC
- State / Province: Georgia
- Country: United States
- Contact:
-
- Experienced User
- Posts: 2711
- Joined: Wed Aug 01, 2012 8:58 am
- First Name: Scott
- Last Name: Klement
- Company Name: Profound Logic
- City: Milwaukee
- State / Province: Wisconsin
Re: 2D Bar Graph Issue
Unfortunately, there's currently no easy way to turn off animation in a chart right now, if you use the normal way of loading values into the chart. Each time you EXFMT your display, it will animate again.
One possible way to work around this is to feed your data into the chart using the "chart xml" property instead. To do that, you'll need to bind a large alphanumeric field to the "chart xml" property, and feed in the data in XML format. There's an example of what the XML would look like on Fusion's web site, here:
http://docs.fusioncharts.com/charts/con ... Bar2D.html
to turn off animation when you build your own XML, you can add an XML attribute of animation="0" to the <chart> tag. This should stop the animation so that the graph just displays all at once to the user, it doesn't "draw" in front of their eyes.
If you want it to animate the first time only, you'd need to add logic to your program to set that "animation" flag to 1 on the first call, and to 0 on subsequent calls.
If you think this should be a standard part of the Profound UI package (i.e. just a regular property you can set in the designer), then perhaps drop us a note at support@profoundlogic.com, and I'll put that in as a feature request. Maybe I can convince the other developers that it should be a feature :-)
One possible way to work around this is to feed your data into the chart using the "chart xml" property instead. To do that, you'll need to bind a large alphanumeric field to the "chart xml" property, and feed in the data in XML format. There's an example of what the XML would look like on Fusion's web site, here:
http://docs.fusioncharts.com/charts/con ... Bar2D.html
to turn off animation when you build your own XML, you can add an XML attribute of animation="0" to the <chart> tag. This should stop the animation so that the graph just displays all at once to the user, it doesn't "draw" in front of their eyes.
If you want it to animate the first time only, you'd need to add logic to your program to set that "animation" flag to 1 on the first call, and to 0 on subsequent calls.
If you think this should be a standard part of the Profound UI package (i.e. just a regular property you can set in the designer), then perhaps drop us a note at support@profoundlogic.com, and I'll put that in as a feature request. Maybe I can convince the other developers that it should be a feature :-)
-
- Experienced User
- Posts: 100
- Joined: Tue Feb 21, 2012 1:24 pm
- First Name: Robert
- Last Name: Mullis
- Company Name: WRC
- State / Province: Georgia
- Country: United States
- Contact:
Re: 2D Bar Graph Issue
Thanks Scott. I just sent an email to support.
Who is online
Users browsing this forum: No registered users and 2 guests