|
From: Liu, L. \(Exchange\) <LL...@Be...> - 2004-09-29 13:58:51
|
Hi, Nathaniel:
I did yAxis.setUserDefinedScale( 0, 0.000001); and
yAxis.setRoundToNearest(0); I also set yAxis.setNumItems((int)maxY +2);
and this seems to have made it work (Note: maxY is the maximum of Y
data). I have also attached a code section below. I did read the User's
guide downloaded from the Web but yet to experience more to utilize many
classes of JCharts. Can you tell me how I can use ScaleCalculator to
adjust the Y-axis scale? What is the difference between Auto- and
UserDefinedScaleCalculator ? Commented code did not work as expected.
Can you see why?
AxisProperties axisProperties=3D new AxisProperties();
DataAxisProperties yAxis=3D (DataAxisProperties)
axisProperties.getYAxisProperties();
=20
// UserDefinedScaleCalculator myScaleCalculator =3D new
UserDefinedScaleCalculator(0.0, 0.001);
// myScaleCalculator.setMinValue(0);
// myScaleCalculator.setMaxValue(maxY);
// myScaleCalculator.computeScaleValues();
// yAxis.setScaleCalculator(myScaleCalculator);
//((DataAxisProperties)axisProperties.getYAxisProperties()).setUserDefin
edScale(0, maxY);
=20
LegendProperties legendProperties=3D new LegendProperties();
Dimension dimension=3DjPanel_Graph.getSize();
AxisChart axisChart=3D new AxisChart( dataSeries,
chartProperties, axisProperties, legendProperties, dimension.width,
dimension.height );
-----Original Message-----
From: jch...@li...
[mailto:jch...@li...] On Behalf Of
Nathaniel G. Auvil
Sent: Tuesday, September 28, 2004 7:32 PM
To: jch...@li...
Subject: Re: [jCharts-users] Y-Axis range - How is it set ?
what is your rounding factor set to? Did you take a look at the users
guide?
--- "Liu, Louis (Exchange)" <LL...@Be...> wrote:
> I have just created a line chart. My data values are all less that 1,
> ranging from 0.01 to 0.8. The Y axis scale is always 0 to 4 which
makes
> my chart lie low and leave a large portion of empty space above it.
How
> is the Y axis range is calculated? How do I override it?
>=20
> =20
>=20
> Louis
>=20
> >=20
>=20
>
***********************************************************************
> Bear Stearns is not responsible for any recommendation, solicitation,=20
> offer or agreement or any information about any transaction, customer=20
> account or account activity contained in this communication.
>
***********************************************************************
>=20
>=20
=09
_______________________________
Do you Yahoo!?
Declare Yourself - Register online to vote today!
http://vote.yahoo.com
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give
us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out
more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
jCharts-users mailing list
jCh...@li...
https://lists.sourceforge.net/lists/listinfo/jcharts-users
***********************************************************************
Bear Stearns is not responsible for any recommendation, solicitation,
offer or agreement or any information about any transaction, customer
account or account activity contained in this communication.
***********************************************************************
|