How to use 'chart' source code in .net

Actually am using .net webapplication as a front end ,backend is a sqlserver .now i want show the backend values by chart
how to i can use please give sample coding to retrive the data from other database to show by chart.please do the needful.

The client side code is the same for any backend

webix.ui({
    view:"chart",
    url:"some.ashx"
});

The url property defines http url that wil be called and output of which will be used as a data