SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and iOS Chart & Android Chart Components

Please Note: The article Building a Simple Line Chart has been moved

 See Building a Simple Line Chart

12 Comments

  1. Norbert Gooßens says:

    Hi together,
    I’m new in C# and WPF and tried to follow the example above. But unfortunetly I got an error message during the compile process.

    Fehler 1 Der Typ- oder Namespacename “DataSeriesSet” konnte nicht gefunden werden. (Fehlt eine Using-Direktive oder ein Assemblyverweis?)

    Maybe I had to enter a USING-Direktive in the code behind. But I don’t find such a code snipplet in your example. Could you gave me an advice?

    Regards

    Norbert

  2. k.schemelinin says:

    Hello.
    I have a problem with this example.
    I have an error:
    Using the generic type ‘Abt.Controls.SciChart.DataSeriesSet’ requires 2 type arguments

  3. Chaos says:

    Hi !

    Just I watch a lot of your example and data is always created in code behind but is it possible to set the data source in the XAML ?

    • Andrew says:

      Hello there,

      Yes it is possible, you can bind SciChartSurface.DataSet to a property in a view model. Check out the tutorials Databinding Annotations in MVVM and also the example Bind SciChart to Data as these show two different techniques you can use to databind to a DataSet

      Best regards,
      Andrew

      • Chaos says:

        Thank you, I saw that just after asking the question sorry. And what about chart refreshing ? In the EEGExample the OnTimer function only Append the new values in the IXyDataSeries objects but when I do myself it doesn’t. I guess it’s not sufficient but I don’t find what to add.

        Thank You

        • Andrew says:

          Hey there, by default the chart does not AutoRange. If you want to automatically see data after appending, call SciChartSurface.ZoomExtents();

          Or, you can set SciChartSurface.XAxis.AutoRange = true, and YAxis.AutoRange = true.

          Finally, if you have any more questions, feel free to head over to our support forum at http://www.scichart.com/forums/ where one of our team will be glad to help! 🙂

Leave a Reply