Hi,
I am having totally 3 different lines series (using scatter line series) in my xamdatachart. I have used StrokeDashGap property to manage the line types, such as solid line, long dash line, dash dot line.
Now the chart appear properly but my legend isn't showing the actual line types and all appear as solid lines how to get the legend similar to my line styles.
Thanks, Boom
Hello Boom,
I have checked, and the LegendItemBadgeMode property did not exist in version 16.1. The legend badge that was applied also did not appear to respect the DashArray on the underlying series in that version, and so my best recommendation would be to create your own LegendItemBadgeTemplate for the ScatterLineSeries.
Version 16.1 is no longer a supported version at the time of writing this and so I’m not entirely sure what the default Legend Item Badge template looks like, but perhaps you could utilize a <Line> element in the DataTemplate you define, as I believe that element has a StrokeDashArray that you could use to apply the dash array to the line shown in the badge.
Please let me know if you have any other questions or concerns on this matter.
Hi Andrew,
Thanks for your reply, but unfortunately we are using infragistics 2016.1 and we are unable to find 'LegendItemBadgeMode' property under infragistics.controls.charts
Could you please help us with another solution specifics to 2016.1 version.
Thanks,
Boom
My team and I have done an initial review of this support case, and the legend badges in the XamDataChart default to a “simplified” legend badge. If you would like to have the badge match the your ScatterLineSeries, I would recommend setting the LegendItemBadgeMode property on the series to “MatchSeries.”