It does not matter where the data comes from. The database querying can be done in any way that you prefer, however, the expected response is Json with an IEnumerable of the model to which the chart is bound to.
// data base call
var result = Enumerable.Range(1, 10).Select(i =>
OrderID = i,
Freight = i * 10,
OrderDate = DateTime.Now.AddDays(i),
.Line(model => model.Freight, categoryExpression: model => model.OrderDate);
.CategoryAxis(axis => axis
.DataSource(dataSource => dataSource
.Read(read => read.Action("Orders_Read", "Chart"))
If you can provide the model, chart definition and data source, I can attempt to replicate this behaviour. Since I do not have it, I am sending you a runnable example for MVC attached here. You should be able to build it, restore the packages and run it. (let me know in case you face any difficulties)
You may find other examples in this repository as well:
Get quickly onboarded and successful
with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.