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
665
Binding XamChart to a SQL Stored Proc
posted

Hello,

I just started working with WPF and am a total novice. I have a scatter line chart and a column chart on my page. Now the issue is how do I bind them to a stored Proc? In ASP.Net website, I bound them using a datatable as such

Dim dt3 As DataTable = GetData("Data", 4, 0, 0, 0, "M200", 1, 0, 0)

        Me.Ultrachart1.Data.DataSource = dt3

        Me.Ultrachart1.Data.DataBind()

Not sure how it's done in WPF for a XamChart. Any help please?

Thanks

  • 28496
    Suggested Answer
    Offline posted

    you can use that same DataTable as the datasource for a series in XamChart.  the only other step you need to take is to set the DataMapping for that series to something like, "Label=Col1; Value=Col2"