We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Small Numbers in Chart

Thread ID:

Created:

Updated:

Platform:

Replies:

63203 Jun 29,2007 09:42 AM Jul 5,2007 01:49 PM ASP.NET Web Forms (Classic) 3
loading
Tags: Chart
David A. Gonzales
Asked On June 29, 2007 09:42 AM

Hi,
I am attempting to chart very small numbers (ie, 0.001 or smaller) and the numbers seem to plot correctly but the Y-Axis labels are strange. I am getting Y-Axis labels like 0.00, 0.00, 0.001, 0.001, etc. I have tried to use Auto as well as Set RangeType and tried to use various Format statements. This is 4.402.0.51. I can multiple the numbers by 1000 and that seems to get the numbers to display the Y-Axis labels correctly but would like to use the actual values if possible.

Thanks.
David

David A. Gonzales
Replied On June 29, 2007 09:59 AM

Here is a small sample that illustrates the problems I am having with the Chart control:

protected void FillPlot()
{
this.ChartWebControl1.Model.Series.Clear();

ChartSeries series1 = this.ChartWebControl1.Model.NewSeries("Plot1", ChartSeriesType.Line);
series1.Text = series1.Name;

series1.Points.Add(1, 0.007);
series1.Points.Add(2, 0.001);
series1.Points.Add(3, 0.009);

this.ChartWebControl1.Series.Add(series1);
this.ChartWebControl1.Redraw(true);
}

This shows the numbers being displayed but the Y-Axis Labels are strange.

Thanks
David.

Rashidha F [Syncfusion]
Replied On July 3, 2007 10:09 AM

Hi David,

My apologies for the delay in responding to you.

Thanks for using Syncfusion Products.

If your intention is to display very small value in Y axes means, please use RoundingPlace property in chartControl.

The following code snippet which illestrates how to set the Range and Roundingplace property in chartControl.

this.chartControl1.PrimaryYAxis.RangeType = ChartAxisRangeType.Set;
this.chartControl1.PrimaryYAxis.Range = new MinMaxInfo(0.000, 0.005, 0.001);
this.chartControl1.PrimaryYAxis.RoundingPlaces = 4;

Please let me know if this helps.

Thanks and Regards,
Rashidha.


David A. Gonzales
Replied On July 5, 2007 01:49 PM

Thanks. That worked. I had to write a couple routines to determine min, max and interval as well as determine the Rounding but works like a charm.

Thanks again.
David.

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;