PDA

View Full Version : OFCGXT Disable Chart Animation



Michi_de
20 Jan 2009, 12:22 AM
I want to use a ofcgxt (user plugin) piechart.
But whenever the cursor is over a slice of the chart, the slice start this little weird animation:
it starts to wince/tremor. I wanted to put this animation off, this way:



buChart = new GxtChartWidget<Statistic>();
buChart.setStore(statisticStore);
buChart.setWidth("250");
buChart.setHeight("250");


buChartProvider = new PieChartProvider<Statistic>("counter", "name");
buChartProvider.getChartData().setTitle(new Text("BU - Piechart Statistic"));
buChartProvider.getChartData().setBackgroundColour("#eeeeee");
buChartProvider.getPieChart().setColours("#0000ff", "#ff0000");
buChartProvider.getPieChart().setAnimate(false);

buChart.setModelChartProvider(buChartProvider);
But it still is animating my chart...

To be more clear, what animation i mean, i made this screenshot (attached).
It shows a slice, where the cursor is over it. I don't want the slice to move away from the center. It should keep not moving, even if the cursor is above.

Any idea on how to disable this animation?

gslender
20 Jan 2009, 1:33 PM
This is due to the available features/functions in the SVN of OFC -> http://openflashchart.com/