|109052||May 28,2013 12:09 AM UTC||May 31,2013 10:22 AM UTC||WinForms||6|
Thanks for using Syncfusion products.
The first point of area chart is always tweaked from nearest value and also this is the default behavior of chart. So it is tweaked from zero. We can set the min and max range to the chart primary axis dynamically using “Range” property. We suggest you to use the below code snippet to set min and max value to the chart axis.
// Assign the Minimum value of Y-Axis to minY
// Assign the Maximum value of Y-Axis to maxY
maxY = this.chartControl1.Series.Summary.MaxY;
// Customize the Y axis range and interval which has points of type double
this.chartControl1.PrimaryYAxis.RangeType = ChartAxisRangeType.Set;
// Set the Min and Max range to the Primary Y-Axis
this.chartControl1.PrimaryYAxis.Range.Min = minY;
this.chartControl1.PrimaryYAxis.Range.Max = maxY;
Please download the sample from the following link.
For more details regarding range and intervals please refer our online document link.
Please let us know if you have any concerns.
for your update.
analyzed your screen shots for negative and positive value and also compare
with Microsoft excel chart. Both charts are rendering in correct format for
positive and negative value. While we give the negative values to the series, the chart would be render as
inverted type and also this is the default behavior. Please check and compare
the excel chart with syncfusion chart from the below link.
Please download the sample’s screen shots from the following link.
let us know if you have any concerns.
for your update.
glad to know that your query has been
resolved. Please let us know if you have any other concerns. We will be happy
to help you out.
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.