title: How do I only get one x-axis-value on WPF Chart control
body: <p>I get a new value on x-axis for each line in the Chart. I only need the first (or last) value on the x-axit from the chart line or better, it only show month 1-12.</p>
  
  <pre><code>  LineSeries lineSeries = new LineSeries();
    lineSeries.DataPointStyle = dataPointStyle;
    lineSeries.DependentValuePath = "Indextal";
    lineSeries.IndependentValuePath = "Dato";
  
    lineSeries.IndependentAxis = new DateTimeAxis
    {
      Orientation = AxisOrientation.X,
      Location = AxisLocation.Bottom,
      IntervalType = DateTimeIntervalType.Months
    };
    //((DateTimeAxis)lineSeries.IndependentAxis).Visibility = Visibility.Hidden;
  
    lineSeries.ItemsSource = IndsætGrafData(år);
    chart_LineSeries.Series.Add(lineSeries);
  </code></pre>
  
  <p>The picture show the result I get. I only need 1 date of each month.
  <img src="https://i.stack.imgur.com/M4hXd.jpg" alt="There are to many dates"></p>