Page 1 of 1

2D Bar Graph Issue

Posted: Fri Mar 15, 2013 3:10 pm
by rmullis
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?

Re: 2D Bar Graph Issue

Posted: Fri Mar 15, 2013 5:58 pm
by Scott Klement
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 :-)

Re: 2D Bar Graph Issue

Posted: Mon Mar 18, 2013 11:11 am
by rmullis
Thanks Scott. I just sent an email to support.