I'm trying to create a simple line graph with no markers using the Chart control in the WPF toolkit. I have a lot of data points, and the line looks very clunky with tons and tons of markers on it. All I really need is a way for the user to visualize the line, not to examine every individual data point.
So far I haven't had much luck with this. Here's my line:
My initials attempt have been focused on setting LineSeries.DataPointStyle. For example, I tried this:
...hoping that the data point would simply disappear. I do get a simple line when I do that, but instead of the nice gradient picked by the Chart by default, the line suddenly becomes orange. And if I have a second line series, they both become orange in that case, making the legend fairly useless.
Any thoughts?
Thanks,
David Cater
So far I haven't had much luck with this. Here's my line:
<charting:Chartx:Name="chart"Grid.Row="1"><charting:LineSeriesItemsSource="{Binding}"DependentValueBinding="{Binding Proficiency, Converter={StaticResource mult}, ConverterParameter=100.0}"IndependentValuePath="Num"Title="Proficiency"><charting:LineSeries.DependentRangeAxis><charting:LinearAxisOrientation="Y"Title="Proficiency"Minimum="0"Maximum="110.0"Interval="5.0"ShowGridLines="True"/></charting:LineSeries.DependentRangeAxis></charting:LineSeries><charting:Chart.Axes><!-- Shared horizontal axis --><charting:LinearAxisOrientation="X"Title="Number of questions"Interval="5"ShowGridLines="True"/></charting:Chart.Axes></charting:Chart>
My initials attempt have been focused on setting LineSeries.DataPointStyle. For example, I tried this:
<charting:LineSeriesItemsSource="{Binding}"DependentValueBinding="{Binding Proficiency, Converter={StaticResource mult}, ConverterParameter=100.0}"IndependentValuePath="Num"Title="Proficiency"><charting:LineSeries.DataPointStyle><StyleTargetType="{x:Type charting:LineDataPoint}"><SetterProperty="Visibility"Value="Collapsed"/></Style></charting:LineSeries.DataPointStyle>
...hoping that the data point would simply disappear. I do get a simple line when I do that, but instead of the nice gradient picked by the Chart by default, the line suddenly becomes orange. And if I have a second line series, they both become orange in that case, making the legend fairly useless.
Any thoughts?
Thanks,
David Cater