JSON Files

If your server stores data in JSON, performing AJAX requests is inevitable. But instead of configuring these requests manually, pass the URL of your data storage (in this demo, a JSON file) to the DataSourceUrl method, and the Chart will do the rest. This URL may specify an absolute or relative path to the resource.

    .TitleText("Daily Sales")
    .ArgumentAxis(axis => axis
    .ValueAxisCollection(axis => axis
    .SeriesCollection(series => series
    .SettingsLegend(settings => settings.Visible(false))


You can use a JSONP callback parameter supported by jQuery.ajax() to access a web service that implements a JSONP (JSON with padding) endpoint.

using DevExpress.AspNetCore.DemoModels;
using Microsoft.AspNetCore.Mvc;
using System.Web;
namespace DevExpress.AspNetCore.Demos {
    public partial class ChartController : Controller {
        public IActionResult JSONP() {
            return PartialView("DataBinding/JSONP");
        public IActionResult GetData() {
            string filePath = System.IO.Path.Combine(hostingEnvironment.WebRootPath, "jsondata/medals.json");
            string fileContent = System.IO.File.ReadAllText(filePath);
            var obj = Newtonsoft.Json.JsonConvert.DeserializeObject(fileContent);
            return new JsonResult(obj);
Screen Size
Color Themes
Demo QR Code