Hi Jerry,
We just tested the range series with the following code:
private void Form1_Load(object sender, EventArgs e)
{
// setup chart
NChart chart = nChartControl1.Charts[0];
chart.Enable3D = false;
// setup shape series
NRangeSeries rangeSeries = (NRangeSeries)chart.Series.Add(SeriesType.Range);
rangeSeries.FillStyle = new NColorFillStyle(Color.Red);
rangeSeries.BorderStyle.Color = Color.DarkRed;
rangeSeries.Legend.Mode = SeriesLegendMode.None;
rangeSeries.DataLabelStyle.Visible = false;
rangeSeries.UseXValues = true;
rangeSeries.UseZValues = true;
// add data
AddDataPoint(rangeSeries, 1, 5, 11, 17, 5, 9);
AddDataPoint(rangeSeries, 4, 7, 15, 19, 16, 19);
AddDataPoint(rangeSeries, 5, 15, 6, 11, 12, 18);
AddDataPoint(rangeSeries, 9, 14, 2, 5, 3, 5);
AddDataPoint(rangeSeries, 15, 19, 2, 5, 3, 5);
rangeSeries.FillStyles[0] = new NColorFillStyle(Color.Red);
rangeSeries.FillStyles[1] = new NColorFillStyle(Color.Green);
rangeSeries.FillStyles[2] = new NColorFillStyle(Color.Blue);
rangeSeries.BorderStyles[0] = new NStrokeStyle(2, Color.Yellow);
rangeSeries.BorderStyles[1] = new NStrokeStyle(2, Color.Cyan);
rangeSeries.BorderStyles[2] = new NStrokeStyle(2, Color.Magenta);
}
private void AddDataPoint(NRangeSeries series, double x1, double x2, double y1, double y2, double z1, double z2)
{
series.XValues.Add(x1);
series.X2Values.Add(x2);
series.Values.Add(y1);
series.Y2Values.Add(y2);
series.ZValues.Add(z1);
series.Z2Values.Add(z2);
}
and it was working properly - the filling and stroke for the first three ranges were modified as expected. Hope this helps - can you post the code that you use to automate the control for review?
Best Regards,
Nevron Support Team