Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
2085
StepAreaGraph Draws Faded Line for Point Data with Same CategoryDateTimeXAxis Date Values
posted

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<

Parents
  • 34810
    Verified Answer
    Offline posted

    Hello Gary,

    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.

    Sincerely,
    Andrew
    Associate Developer
    Infragistics Inc.
    www.infragistics.com/support

    XamDataChartStepSeriesCase.zip
Reply Children