Your search did not match any results.
Charts

Polar Chart Zooming and Scrolling API

To zoom a PolarChart into a specific range on the value axis, specify the PolarChart's visualRange option.

In this demo, this option is bound to the RangeSelector's value. When you move the sliders in the RangeSelector, you change the visualRange and zoom the PolarChart.

Once you set the zoom level, move the selected range left and right to scroll through data.

Copy to CodePen
Apply
Reset
$(function(){ $("#zoomedChart").dxPolarChart({ dataSource: dataSource, commonSeriesSettings: { argumentField: "argument", closed: false }, series: [{ type: "scatter", name: "Test results", valueField: "value", point: { size: 8 } }, { type: "line", name: "Expected average", valueField: "originalValue", point: { visible: false } } ], argumentAxis: { startAngle: 90, tickInterval: 30 }, valueAxis: { visualRange: { startValue: 0, endValue: 8 } }, "export": { enabled: true }, legend: { hoverMode: "excludePoints", verticalAlignment: "top", horizontalAlignment: "center" }, title: "Stochastic Process" }); $("#rangeSelector").dxRangeSelector({ size: { height: 100 }, margin: { top: 10, left: 60, bottom: 10, right: 50 }, scale: { startValue: 0, endValue: 8, minorTickInterval: 0.1, tickInterval: 1, minorTick: { visible: false } }, behavior: { callValueChanged: "onMoving" }, onValueChanged: function (e) { var zoomedChart = $("#zoomedChart").dxPolarChart("instance"); zoomedChart.getValueAxis().visualRange(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="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script> <script>window.jQuery || document.write(decodeURIComponent('%3Cscript src="js/jquery.min.js"%3E%3C/script%3E'))</script> <link rel="stylesheet" type="text/css" href="https://cdn3.devexpress.com/jslib/19.2.3/css/dx.common.css" /> <link rel="stylesheet" type="text/css" href="https://cdn3.devexpress.com/jslib/19.2.3/css/dx.light.css" /> <script src="https://cdn3.devexpress.com/jslib/19.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="zoomedChart"></div> <div id="rangeSelector"></div> </div> </body> </html>
#zoomedChart { height: 440px; width: 100%; }
function generateData(start, end, step) { var data = []; for (var i = start; i < end; i += step) { var originalValue = Math.log(i); data.push({ value: originalValue - (Math.sin(Math.random() * i) * i / end) + (1 - Math.random() * 2), originalValue: originalValue, argument: i }); } return data; } var dataSource = generateData(0, 360, 0.75);