Simple line chart

Mar 5, 2010 at 12:09 AM

Hi,

I need to create a line chart with many hundred points in it.

I want to get rid of the point markers to keep only the lines, and can't find a way of doing it. Any help would be great !

My code:

<charting:Chart x:Name="iChart" Title="{Binding Path='Name'}"> <charting:Chart.Series>

<font size="2" color="#a31515"><font size="2" color="#a31515">

 

</font></font><font size="2" color="#a31515">

 

</font>

<charting:LineSeries ItemsSource="{Binding Path='Line1'}"

<font size="2">

  

</font>

DependentValuePath="YVal" IndependentValuePath="XVal" Title="'Line1'" Background="Red"

<font size="2">

  

</font>

IsSelectionEnabled="True"> </charting:LineSeries>

 

<font size="2" color="#a31515"><font size="2" color="#a31515">

 

</font></font><font size="2" color="#a31515">

 

</font>

 

<charting:LineSeries ItemsSource="{Binding Path='Line2'}"

<font size="2">

 

</font>

DependentValuePath="YVal" IndependentValuePath="XVal" Title="OEP" Background="Blue"

<font size="2">

 

</font>

IsSelectionEnabled="True">

<font size="2" color="#a31515"><font size="2" color="#a31515">

 

</font></font><font size="2" color="#a31515">

 

</font>

</charting:LineSeries>

<font size="2" color="#a31515"><font size="2" color="#a31515">

 

</font></font><font size="2" color="#a31515">

 

</font>

</charting:Chart.Series> 

</charting:Chart>

Mar 12, 2010 at 2:52 PM
Edited Mar 12, 2010 at 2:52 PM

The LineSeries has a DataPointStyle-Property make a Style that hides the DataPoint.

Should look something like this:

 

<charting:LineSeries.DataPointStyle>
    <Style TargetType="{x:Type charting:LineDataPoint}" >
        <Setter Property="Visibility" Value="Collapsed"/>
    </Style>
</charting:LineSeries.DataPointStyle>