Code Monkey home page Code Monkey logo

Comments (6)

beto-rodriguez avatar beto-rodriguez commented on May 18, 2024

Yes it can. it is ready for wpf bindings you could use all you know with wpf to make this work. I currently don't have an example. Maybe and just maybe in a future I will add an example to test project. Please try it if something is not working I can help you.

Thanks.

from live-charts.

gregsdennis avatar gregsdennis commented on May 18, 2024

I had to create an attached property in order to fill in data from my view model in C#. Is there a pure-XAML solution?

from live-charts.

beto-rodriguez avatar beto-rodriguez commented on May 18, 2024

it should be possible the problem I see is that write the next block of code as Xaml will result complex, I think an IValueConverter could be a good solution

LineChart.Series = new ObservableCollection<Serie>
            {
                new LineSerie
                {
                    PrimaryValues = new ObservableCollection<double>
                    {
                        -10, 5, 9, 28, -3, 2, 0, 5, 10, 1, 7, 2
                    }
                }
            };

from live-charts.

gregsdennis avatar gregsdennis commented on May 18, 2024

@flyaim,

@beto-rodriguez merged in some changes today that should help with your MVVM needs. Download the latest source and look at the XAML in the second tab for how to bind data.

from live-charts.

beto-rodriguez avatar beto-rodriguez commented on May 18, 2024

I am closing this issue, now Test project includes an MVVM example for each chart

from live-charts.

flyaim avatar flyaim commented on May 18, 2024

@beto-rodriguez
@gregsdennis
got it,i will try,thank you!

from live-charts.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.