I have a spline series based on data like (null, 1, null, 1.2, null, null, 0.8,,...). The x-axis is of type DateTime.
I want (1) not to show the line but show only the markers (2) not to plot null or empty values.
How do I do this?
Thanks.
P.S. I am overlaying this series on another spline series so that the selected points are marked.
Hello Jay,
I am just checking if you require any further assistance on the matter.
I tried the scatter series but it didn't work - the line and markers are not showing at all. Let's say, my underlying data has 4 columns, (Date, Price, Buy, Sell). Date is the x-axis. Date and Price will always have a value. Buy and Sell columns will have mostly nulls but at certain points will have values that match the value of the price column. So, when this chart is displayed, it will show a grey Price line with markers for Buys and Sells on this line. This works when I use a Spline Series but for Buy and Sell series I do not want to show the lines - just the markers. If I can make these lines invisible, it would be perfect. When I changed my Buy and Sell series to ScatterSeries as suggested, the series themselves were not displaying but were showing in the legend. I do not think that a scatter series will work in my specific case probably because the x-axis is a date.
Here us what I am using:
<ig:SplineSeries Name="PriceSeries" Title="PriceLocal" ItemsSource="{Binding}" ValueMemberPath="PriceLocal" XAxis="{Binding ElementName=xmXAxisDate1}" YAxis="{Binding ElementName=xmYAxisPrice}" MarkerType="None" Foreground="Gray" />
<ig:ScatterSeries Name="BuySeries" Title="Buy" ItemsSource="{Binding}" XMemberPath="AsOfDate" YMemberPath="BuyPrice" XAxis="{Binding ElementName=xmXAxisDate1}" YAxis="{Binding ElementName=xmYAxisPrice}" MarkerType="Diamond" MarkerBrush="Blue" Visibility="Visible"/>
<ig:ScatterSeries Name="SellSeries" Title="Sell" ItemsSource="{Binding}" XMemberPath="AsOfDate" YMemberPath="SellPrice" XAxis="{Binding ElementName=xmXAxisDate1}" YAxis="{Binding ElementName=xmYAxisPrice}" MarkerType="Diamond" MarkerBrush="Red" Visibility="Visible"/>
Actually, this is a stock price series with indicators (markers) for Buy and Sell signals - something very common in equity trading applications. I have been using the above mentioned overlay trick in excel but if there is a better way to accomplish this with Infragistics charting features - please let me know. Thanks.
Okay - I got the solution - I simply set the Thickness property of the Spline series to 0.
Hello,
Thank you for your feedback. I am glad that you have managed your issue.