Your search did not match any results.
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.
@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.NETCore.Demos.Models.SampleData; using Microsoft.AspNetCore.Mvc; using Newtonsoft.Json; using System; using System.Collections.Generic; namespace DevExtreme.NETCore.Demos.Controllers { public class ChartsController : Controller { public ActionResult Doughnut() { return View(SampleData.PopulationData); } } }
#pie { height: 440px; }