Vishy
Vishy

Reputation: 1362

.NET Chart Box Plot Bleeding outside chart area

I see that when a Box crosses max and min limit on the Y-axis the box bleeds outside the chart area. Is there a solution/Tweak for this?enter image description here

Upvotes: 2

Views: 809

Answers (2)

Ed W
Ed W

Reputation: 125

Try the following:

chart1.ChartAreas[0].AxisY.Crossing = 0;
chart1.ChartAreas[0].AxisX.Crossing = 0;

Upvotes: 1

Joe Vi
Joe Vi

Reputation: 493

Are you setting the Min and Max values yourself or letting the control decide? Try setting them to auto.

chart1.ChartAreas[0].AxisY.Maximum = double.NaN;
chart1.ChartAreas[0].AxisY.Minimum = double.NaN;

Upvotes: 1

Related Questions