Your search did not match any results.
Polar and Radar Charts

Discrete Data

Documentation
This example demonstrates how to visualize discrete data using the PolarChart widget. Months in the data source form discrete categories that divide the PolarChart. In addition, you can spot the difference between series types. Use the drop-down menu below the PolarChart to change the applied series type.
www.weather.com
Copy to CodePen
Apply
Reset
window.onload = function() { var seriesType = ko.observable("scatter"); var viewModel = { polarChartOptions: { margin: { top: 50, bottom: 50, left: 100 }, dataSource: dataSource, series: [{valueField: "day", name: "Day", color: "#ba4d51" }, { valueField: "night", name: "Night", color: "#5f8b95" }], commonSeriesSettings: { type: seriesType } }, selectBoxOptions: { width: 200, dataSource: types, value: seriesType } }; 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> <link rel="stylesheet" type="text/css" href="https://cdn3.devexpress.com/jslib/17.1.6/css/dx.spa.css" /> <link rel="stylesheet" type="text/css" href="https://cdn3.devexpress.com/jslib/17.1.6/css/dx.common.css" /> <link rel="dx-theme" data-theme="generic.light" href="https://cdn3.devexpress.com/jslib/17.1.6/css/dx.light.css" /> <script src="https://cdn3.devexpress.com/jslib/17.1.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 class="long-title"><h3>Average temperature in London</h3></div> <div id="chart-demo"> <div id="radarChart" data-bind="dxPolarChart: polarChartOptions"></div> <div class="center"> <div>Series Type</div>&nbsp; <div data-bind="dxSelectBox: selectBoxOptions"></div> </div> </div> </div> </body> </html>
#chart-demo { width: 100%; height: 600px; } #radarChart { height: 500px; } #chart-demo > .center { text-align: center; } #chart-demo > .center > div, #chart-demo > .center > .dx-widget { display: inline-block; vertical-align: middle; } .long-title h3 { font-family: 'Segoe UI Light', 'Helvetica Neue Light', 'Segoe UI', 'Helvetica Neue', 'Trebuchet MS', Verdana; font-weight: 200; font-size: 28px; text-align: center; margin-bottom: 20px; }
var dataSource = [{ arg: "January", day: 6, night: 2 }, { arg: "February", day: 7, night: 2 }, { arg: "March", day: 10, night: 3 }, { arg: "April", day: 14, night: 5 }, { arg: "May", day: 18, night: 8 }, { arg: "June", day: 21, night: 11 }, { arg: "July", day: 22, night: 13 }, { arg: "August", day: 22, night: 13 }, { arg: "September", day: 19, night: 11 }, { arg: "October", day: 15, night: 8 }, { arg: "November", day: 10, night: 5 }, { arg: "December", day: 7, night: 3 }]; var types = ["scatter", "line", "area", "bar", "stackedbar"];