Hi all,
I have a question regarding coloring specific parts of a NSmoothLine series. Let say I have entered 100 values in this series. I want to from index 0 to index 25 to be black, from index 26 to 75 to be red, and index 76 to index 100 to be black again. I have used code like this to color the middle portion red:
for i as integer=26 to 75
DirectSeries.BorderStyles(i) = New NStrokeStyle(Color.Red)
DirectSeries.XValues.Add(xvals(i))
DirectSeries.Values.Add(zvals(i) * 1000)
end
NChartControl1.refresh()
My issue with this code is it does not turn the specified section red. It appears as if there is still the black line and under it I can see the red. But I want the line to be only black, then only red, then only black.
I can explain my issue more if need be. Does anybody have any ideas?