PDA

View Full Version : ext.ux.ofcgxt - problem with setSteps()



MartinElkjaer
6 Mar 2009, 4:49 AM
Hi,

I'm trying to figure out how steps for labels are working....

It's a little strange because it's working when i use a invalid beanproperty



final BarChartProvider<Sales> alphacp = new BarChartProvider<Sales>(BarChart.BarStyle.GLASS, "alphasales", "INVALIDPROP");


This example shows these x-labels: 1,2,3,4,5,6,7........
Setting steps to 3 gives 1,4,7,......

builder.getChartData().getXAxis().setSteps(3);

But when using a correct beanproperty:

final BarChartProvider<Sales> alphacp = new BarChartProvider<Sales>(BarChart.BarStyle.GLASS, "alphasales", "qtr1");


.... then I see all label no matter what steps value are set to.

Any ideas ? An working example would be perfect B)


Best regards

Martin

MartinElkjaer
9 Mar 2009, 11:24 PM
Anyone ?