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. Image for the cookie policy date

How to prevent Y axis from having negative values

Given that the values I''m charting cannot be negative, I don''t want the Y axis to show negative gradations. How can I disable this? Sean

1 Reply

DJ Davis Jebaraj Syncfusion Team June 18, 2004 02:22 PM UTC

Hi, You can set a custom range for the Y axis and prevent any negative values: this.chartControl1.PrimaryYAxis.RangeType = ChartAxisRangeType.Set; this.chartControl1.PrimaryYAxis.Range.Min = 0; Regards, Davis

Live Chat Icon For mobile
Up arrow icon