How to set ScaleCalculator in version 1.0.0 alpah

Zebulon <[email protected]> Wed, 10 Jun 2009 21:08:53 +0200
Newsgroups gmane.comp.krysalis.jcharts.user
Message-ID <[email protected]>
Hi,

i use Icefaces which uses the 1.0.0 alpha version of jcharts. I would
like to set custom scale values for the Y axis. But when I use this code
nothing happends:

           AxisChart axisChart = new AxisChart(dataSeries,
chartProperties, axisProperties, legendProperties, 400, 350);
          
           // Set custom Y scale
           YAxis yAxis = new YAxis(axisChart, computeNumberOfScaleItems());

           UserDefinedScaleCalculator scaleCalculator = new
UserDefinedScaleCalculator(yMinScaleValue, 0.5);
          
scaleCalculator.setNumberOfScaleItems(computeNumberOfScaleItems());
           scaleCalculator.setMaxValue(yMaxScaleValue);
           scaleCalculator.setMinValue(yMinScaleValue);

      yAxis.setScaleCalculator(scaleCalculator);
           axisChart = yAxis.getAxisChart();

but it does not work. Can anyone help me?

Best regards
Zeb.

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects