I am using a StepAreaSeries like:
StepAreaSeries series = new StepAreaSeries(); series.Title = title; series.Legend = legend; series.XAxis = xAxis; series.YAxis = yAxis; series.ValueMemberPath = valueMemberPath; series.Thickness = thickness; series.MarkerType = MarkerType.None; series.ItemsSource = itemsSource; series.Brush = new SolidColorBrush(color.Value);
And I am using a NumericYAxis and a CategoryDateTimeXAxis. When I try to graph a group of points with the same X-value, in order like:(07/31/2015 12:00PM , 0)(07/31/2015 12:00PM , 1)(07/31/2015 12:00PM , 1)(07/31/2015 12:00PM , 0)(07/31/2015 12:30PM , 0)(07/31/2015 12:30PM , 1)(07/31/2015 12:35PM , 1)(07/31/2015 12:35PM , 0)My chart looks like:
Where the first 4 points form a rectangle of "zero" width and the "box" drawn fades as it increases on the Y-axis.I need for this scenario to look like the image shown below where a "box" is still drawn and there is no fading:
I have not been able to determine what causes the series' line ro fade, any suggestions on what to look at that might be causing this<
Hello Gary,
Thank you for your response. I am glad you were able to resolve this issue.
Sincerely,AndrewAssociate DeveloperInfragistics Inc.www.infragistics.com/support
Hi Andrew, it turns out this was a programming error on my part. I am basically creating a time-based binary square wave graph (levels of 0 or 1) so I needed 4 points along a time line (0, 1, 1, 0) to produce the effect of a square wave and then I used the AreaSeries to fill in the background of the "square". In my algorithm, I ended up with a square of (0,1,0,0) in some cases where a single time interval was defined, so that was drawing a triangle and giving the illusion of "line fade".
Thanks for the help!
Thanks Andrew, I will take a look at your example and try some suggestion and post a modified example if I can't make progress, in the mean time here in another attempt to post a screen shot: This chart has multiple CategoryDateTimeX and NumericY axis to move the step graphs off center of the main (visible) axes - the red graphs should be solid red, but some of the sections of the area step series fade as they go up (single 5 minute sections on the graph tend to be the ones fading, could be some board or edge line styling):
Thank you for your post!
I have been investigating into this issue, but so far, I haven't been able to reproduce the behavior your are referring to. I also am unable to see the images that you have uploaded to this thread, but in the XamDataChart that I have created with the data source you have provided, I am seeing two rectangles in the StepAreaSeries with one being very thin and the other being a bit thicker. Neither of them have a faded effect though. Something that may be affecting this is the value that you are using for series.Thickness though, or if you are using a gradient brush for your series.Brush property. Would it be possible for you to include the values you are using for these properties?
My tests were made using the latest version of Infragistics for WPF 2015 Volume 1. That is, 15.1.20151.2055. Is this the same version you are using on your machine? I have attached the sample application I have used to test this. Please run this application on your machine to see if it reproduces the same issue you are seeing.
Please let me know if you have any other questions or concerns on this matter.