Your search did not match any results.
Doughnut Charts

Doughnut

Documentation

This demo illustrates the PieChart widget with the doughnut series type, which is often used when comparing the percentage values of different point arguments within a series.

www.geohive.com
@model IEnumerable<object> @(Html.DevExtreme().PieChart() .ID("pie") .Palette(VizPalette.SoftPastel) .Type(PieChartType.Doughnut) .Title("The Population of Continents and Regions") .Tooltip(t => t .Enabled(true) .Format(Format.Millions) .CustomizeTooltip(@<text> function(arg) { var percentText = Globalize.formatNumber(arg.percent, { style: "percent", minimumFractionDigits: 2, maximumFractionDigits: 2 }); return { text: arg.valueText + " - " + percentText }; } </text>) ) .Legend(l => l .HorizontalAlignment(HorizontalAlignment.Right) .VerticalAlignment(VerticalEdge.Top) .Margin(0) ) .Export(e => e.Enabled(true)) .Series(s => s .Add() .ArgumentField("Region") .ValueField("Val") .Label(l => l .Visible(true) .Format(Format.Millions) .Connector(c => c.Visible(true)) ) ) .DataSource(Model) )
using DevExtreme.AspNet.Data; using DevExtreme.AspNet.Mvc; using DevExtreme.MVC.Demos.Models; using DevExtreme.MVC.Demos.Models.SampleData; using Newtonsoft.Json; using System; using System.Collections.Generic; using System.Web.Mvc; namespace DevExtreme.MVC.Demos.Controllers { public class ChartsController : Controller { public ActionResult Doughnut() { return View(SampleData.PopulationData); } } }
#pie { height: 440px; }