mahmud-hasan / ofcgwt

Automatically exported from code.google.com/p/ofcgwt
0 stars 0 forks source link

Y Axis scale range is not sufficient with you have double values less then 6 #30

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Create a LineChart.

And give a store values in between 0.01 and and 5.90.

Let say we have three values 1.01, 1.12, and 1.45. The scale will end at
1.08 and You will see first to values but off the scale and the third value
will be not even displayed though you will see a line leading to it

So apparently there is a problem in defining a range fro Y Axis. 

My assumption would be that an error is here:
 Integer maxValue = 0;
        for (ModelChartProvider<?> mcp : chartDataProviders) {
            maxValue = Math.max(maxValue, mcp.getMaxYValue());
        }
        Scale scale = scaleProvider.calcScale(maxValue);

For our example maxValue is 1. Wich is not true , the thing is that
everything is integer....

Original issue reported on code.google.com by smfedo...@gmail.com on 19 Mar 2009 at 3:00

GoogleCodeExporter commented 9 years ago
Ext GWT v2.0 (GXT) will be releasing full chart support. If you are a SVN 
member you
can get code now.

Original comment by gslen...@gmail.com on 3 Apr 2009 at 6:34