Your search did not match any results.
Charts

Spline

Documentation
Spline series types, like line series types, help visualize data trends over specified intervals. However, splines help "smooth" individual lines that connect data points. In this example, you can switch between the spline, stacked spline and full-stacked spline series types. Stacked spline series help visualize multiple series and compare the manner in which each series contributes to the total aggregate value for specific arguments. Full-stacked spline series help compare the percentage value of multiple spline series for each argument.
Copy to Codepen
Apply
Reset
$(function(){ var chart = $("#chart").dxChart({ palette: "violet", dataSource: dataSource, commonSeriesSettings: { type: types[0], argumentField: "year" }, commonAxisSettings: { grid: { visible: true } }, margin: { bottom: 20 }, series: [ { valueField: "smp", name: "SMP" }, { valueField: "mmp", name: "MMP" }, { valueField: "cnstl", name: "Cnstl" }, { valueField: "cluster", name: "Cluster" } ], tooltip:{ enabled: true }, legend: { verticalAlignment: "top", horizontalAlignment: "right" }, "export": { enabled: true }, title: "Architecture Share Over Time (Count)" }).dxChart("instance"); $("#types").dxSelectBox({ dataSource: types, value: types[0], onValueChanged: function(e){ chart.option("commonSeriesSettings.type", e.value); } }); });
<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>DevExtreme Demo</title> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" /> <script src="js/jquery-3.1.0.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/cldrjs/0.4.4/cldr.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/cldrjs/0.4.4/cldr/event.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/cldrjs/0.4.4/cldr/supplemental.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/cldrjs/0.4.4/cldr/unresolved.min.js"></script> <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/globalize/1.1.1/globalize.min.js"></script> <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/globalize/1.1.1/globalize/message.min.js"></script> <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/globalize/1.1.1/globalize/number.min.js"></script> <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/globalize/1.1.1/globalize/currency.min.js"></script> <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/globalize/1.1.1/globalize/date.min.js"></script> <link rel="stylesheet" type="text/css" href="https://cdn3.devexpress.com/jslib/16.2.6/css/dx.spa.css" /> <link rel="stylesheet" type="text/css" href="https://cdn3.devexpress.com/jslib/16.2.6/css/dx.common.css" /> <link rel="dx-theme" data-theme="generic.light" href="https://cdn3.devexpress.com/jslib/16.2.6/css/dx.light.css" /> <script src="https://cdn3.devexpress.com/jslib/16.2.6/js/dx.all.js"></script> <script src="data.js"></script> <link rel="stylesheet" type ="text/css" href ="styles.css" /> <script src="index.js"></script> </head> <body class="dx-viewport"> <div class="demo-container"> <div id="chart-demo"> <div id="chart"></div> <div class="center"> <div>Series Type</div> &nbsp; <div id="types"></div> </div> </div> </div> </body> </html>
#chart-demo { height: 440px; } #chart-demo > .center { text-align: center; } #chart-demo > .center > div, #chart-demo > .center > .dx-widget { display: inline-block; vertical-align: middle; }
var dataSource = [{ year: 1997, smp: 263, mmp: 226, cnstl: 10, cluster: 1 }, { year: 1999, smp: 169, mmp: 256, cnstl: 66, cluster: 7 }, { year: 2001, smp: 57, mmp: 257, cnstl: 143, cluster: 43 }, { year: 2003, smp: 0, mmp: 163, cnstl: 127, cluster: 210 }, { year: 2005, smp: 0, mmp: 103, cnstl: 36, cluster: 361 }, { year: 2007, smp: 0, mmp: 91, cnstl: 3, cluster: 406 }]; var types = ["spline", "stackedspline", "fullstackedspline"];