Hello I am using a Histogram chart with the DrawHistogramNormalDistribution property set to true. What I was wondering is, how can I set the ranges on the X and Y axis? As it is now, they change per each amount of data I send it. I would like to have a constant throughout both, or to be able to set it myself.
Any ways I can do this?
SD
Sarathi D
Syncfusion Team
August 30, 2007 12:40 AM UTC
Hi Brandon,
Please use the below code snippet to set the X and Y axis ranges programmatically.
//To set X axis Range
MinMaxInfo mx = new MinMaxInfo(20, 700, 50);
this.chartControl1.PrimaryXAxis.Range = mx;
//To set Y axis Range
MinMaxInfo my= new MinMaxInfo(1, 20, 2);
this.chartControl1.PrimaryYAxis.Range = my;
Please try this and let me know if you have any difficulties.
Regards,
Sarathi
BE
Brandon Erickson
August 30, 2007 02:03 PM UTC
thank you, that worked :)
SD
Sarathi D
Syncfusion Team
September 4, 2007 11:14 PM UTC
Hi Brandon,
Thank you for the update. Please let me know if you have any further queries.
Regards,
Sarathi