Your search did not match any results.

Spline Area

Spline area series display smooth lines that connect data points. This demo shows different spline area series types. Use the drop-down editor below the Chart to select the type.

  • splinearea
    The spline area series draws a line between neighboring data points and fills the area under the line. If the Chart contains multiple area series, they overlap.

  • stackedsplinearea
    The Chart displays areas stacked on top of each other without overlapping. This type of Chart is useful if you need to compare the contribution of each series to the overall value.

  • fullstackedsplinearea
    The Chart stacks the areas. Values are displayed as percentages of the total for each argument, as opposed to absolute values. The topmost series points are always plotted at 100%, and the graph completely fills the Chart's pane.

To create multiple spline area series, use the series array to declare each series and the commonSeriesSettings object to specify the common series type.

www.geohive.com
Backend API
<div id="chart-demo"> @(Html.DevExtreme().Chart() .ID("spline-area-chart") .Palette(VizPalette.HarmonyLight) .Title("Corporations with Highest Market Value") .CommonSeriesSettings(s => s .ArgumentField("Company") .Type(SeriesType.SplineArea) ) .ArgumentAxis(a => a.ValueMarginsEnabled(false)) .Margin(m => m.Bottom(20)) .Series(s => { s.Add().ValueField("Y2005").Name("2005"); s.Add().ValueField("Y2004").Name("2004"); }) .Export(e => e.Enabled(true)) .Legend(l => l .VerticalAlignment(VerticalEdge.Bottom) .HorizontalAlignment(HorizontalAlignment.Center) ) .DataSource(new[] { new { Company = "ExxonMobil", Y2005 = 362.53, Y2004 = 277.02 }, new { Company = "GeneralElectric", Y2005 = 348.45, Y2004 = 328.54 }, new { Company = "Microsoft", Y2005 = 279.02, Y2004 = 297.02 }, new { Company = "Citigroup", Y2005 = 230.93, Y2004 = 255.3 }, new { Company = "Royal Dutch Shell plc", Y2005 = 203.52, Y2004 = 173.54 }, new { Company = "Procted & Gamble", Y2005 = 197.12, Y2004 = 131.89 } }) ) <div class="options"> <div class="caption">Options</div> <div class="option"> <span>Series Type</span> @(Html.DevExtreme().SelectBox() .DataSource(new[] { SeriesType.SplineArea, SeriesType.StackedSplineArea, SeriesType.FullStackedSplineArea }) .Value(SeriesType.SplineArea) .OnValueChanged(@<text> function(e) { $("#spline-area-chart").dxChart("option", "commonSeriesSettings.type", e.value); } </text>) ) </div> </div> </div>
using DevExtreme.AspNet.Data; using DevExtreme.AspNet.Mvc; using DevExtreme.MVC.Demos.Models.SampleData; using Newtonsoft.Json; using System; using System.Collections.Generic; using System.Linq; using System.Web.Mvc; namespace DevExtreme.MVC.Demos.Controllers { public class ChartsController : Controller { public ActionResult SplineArea() { return View(); } } }
.options { padding: 20px; background-color: rgba(191, 191, 191, 0.15); margin-top: 20px; } .option { margin-top: 10px; } .caption { font-size: 18px; font-weight: 500; } .option > span { margin-right: 10px; } .option > .dx-widget { display: inline-block; vertical-align: middle; }