Scalebreakstyle not working in Chart <p>My chart has a Datetime type X Axis and Double type Y Axis. I am trying to use the following code to insert the scalebreakstyle feature but it is not working. Does anyone have sample code for it. I was trying the web.UI code but did not work. Also I set the color of 2 series the same it keeps making them different. /</p> <pre><code>/ Enable scale breaks. chart1.ChartAreas["ChartArea1"].AxisY.ScaleBreakStyle.Enabled = true; // Show scale break if more than 25% of the chart is empty space. chart1.ChartAreas["ChartArea1"].AxisY.ScaleBreakStyle.CollapsibleSpaceThreshold = 25; // Set the line width of the scale break. chart1.ChartAreas["ChartArea1"].AxisY.ScaleBreakStyle.LineWidth = 2; // Set the color of the scale break. chart1.ChartAreas["ChartArea1"].AxisY.ScaleBreakStyle.LineColor = Color.Red; // If all data points are significantly far from zero, the chart will calculate the scale minimum value. chart1.ChartAreas["ChartArea1"].AxisY.ScaleBreakStyle.StartFromZero = StartFromZero.Auto; // Set the spacing gap between the lines of the scale break (as a percentage of the Y-axis). chart1.ChartAreas["ChartArea1"].AxisY.ScaleBreakStyle.Spacing = 2; </code></pre> <p>www.tinypic.com/r/6e2c83/5</p>