Your search did not match any results.
Line 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.

www.top500.org
Copy to CodePen
Apply
Reset
window.onload = function() { var currentType = ko.observable(types[0]); var viewModel = { chartOptions: { palette: "violet", dataSource: dataSource, commonSeriesSettings: { type: currentType, 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 }, argumentAxis: { label:{ format: { type: "decimal" } }, allowDecimals: false, axisDivisionFactor: 60 }, title: "Architecture Share Over Time (Count)" }, typesOptions: { dataSource: types, value: currentType } }; ko.applyBindings(viewModel, document.getElementById("chart-demo")); };
<!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/knockout/3.4.0/knockout-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/17.2.3/css/dx.spa.css" /> <link rel="stylesheet" type="text/css" href="https://cdn3.devexpress.com/jslib/17.2.3/css/dx.common.css" /> <link rel="dx-theme" data-theme="generic.light" href="https://cdn3.devexpress.com/jslib/17.2.3/css/dx.light.css" /> <script src="https://cdn3.devexpress.com/jslib/17.2.3/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" data-bind="dxChart: chartOptions"></div> <div class="options"> <div class="caption">Options</div> <div class="option"> <span>Series Type</span> <div data-bind="dxSelectBox: typesOptions"></div> </div> </div> </div> </div> </body> </html>
.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; }
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"];