This demo shows how to create a bi-directional bar chart. This is a rotated stacked bar chart with half of its data source values converted from positive to negative.
using DevExtreme.AspNet.Data;
using DevExtreme.AspNet.Mvc;
using DevExtreme.NETCore.Demos.Models;
using DevExtreme.NETCore.Demos.Models.SampleData;
using Microsoft.AspNetCore.Mvc;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
namespace DevExtreme.NETCore.Demos.Controllers {
public class ChartsController : Controller {
public ActionResult BiDirectionalBarChart() {
return View(SampleData.PopulationPyramidData);
}
}
}