Jump to content
Software FX Community

Chart Scaling


User (Legacy)

Recommended Posts

Posted

I am pulling back a set of data that looks like the following:

2004-03-28 02:25:00.000 3047.6140624999998

2004-03-28 02:20:00.000 3047.6131249999999

2004-03-28 02:15:00.000 3047.6196875000001

2004-03-28 02:10:00.000 3047.6262499999998

2004-03-28 02:05:00.000 3047.6154687500002

2004-03-28 02:00:00.000 3047.6173437500001

2004-03-28 01:55:00.000 3047.6229687499999

I am having a couple of different problems. The first one is the scaling issue of the Y axis. It is giving me a scale of 0 to just over 3000. I would like to see a scale of 3047.40 - 3047.80. I am doing this in C# - here is the code that I have in the page now and it does not choke on any of it:

Chart1.Gallery = Gallery.Lines;

Axis myAxisY = Chart1.AxisY;

myAxisY.Min = 3047.4;

myAxisY.Max = 3047.8;

but when it gets to the point of rendering the chart I get the following error:

System.OverflowException: Overflow error

Line 76: Response.Write(Chart1.GetHtmlTag("450","280","image"));

If I remove the code out of the page about the Y axis then the page works again but uses the default scale.

Any help would be appreciated.

Thanks

Derek

Posted

1) 

By default the Y-Axis will start at zero, you can change this by doing:

chart.AxisY.ForceZero = false;

PRIOR to passing your data. This will set the Min to a Positive value closer

to the Min value in your data.

2) Please specify which version/build of the product are you using, also check for available service packs in our support site.

--

FP

Software FX

Posted

Awesome!  That worked great.

I am using ChartFX.NET 6.2 and I think I am current with any updates that are on the support area.

- Derek

"SoftwareFX Support" <noreply@softwarefx.com> wrote in message news:z%23xGHVnFEHA.200@webserver3.softwarefx.com...

1)

By default the Y-Axis will start at zero, you can change this by doing:

chart.AxisY.ForceZero = false;

PRIOR to passing your data. This will set the Min to a Positive value closer

to the Min value in your data.

2) Please specify which version/build of the product are you using, also check for available service packs in our support site.

--

FP

Software FX

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...