Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
40
xamWebChart. How do I dinamically bind datapoints?
posted

I have a webChart defined in my XAML file (View) with one series added. My ViewModel is retrieving data. ViewModel has a few properties that are binded to the series which are updated based on the type of data it retrieved. Everything works fine, if I have hard-coded data points on the series. So far I did not find a way to bind DataPoints correctly. My ViewModel has no knowledge of chart object and I'd like to keep it this way.

Along with this goes another question: how do I graph using Column series following points (X,Y):

(0, 15)
(3, 20)
(4, 35)
(10, 10)
(50, 28)?

So far my X values are treated as string data and plotted on the graph at values 1 through 5...