DevExtreme v23.2 is now available.

Explore our newest features/capabilities and share your thoughts with us.

Your search did not match any results.

Polar Chart Zooming and Panning API

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

In this demo, this property 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.

Backend API
$(() => { $('#zoomedChart').dxPolarChart({ 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: { valueChangeMode: 'onHandleMove', }, onValueChanged(e) { const 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.5.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/23.2.4/css/dx.light.css" /> <script src="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) { const data = []; for (let i = start; i < end; i += step) { const originalValue = Math.log(i); data.push({ value: originalValue - ((Math.sin(Math.random() * i) * i) / end) + (1 - Math.random() * 2), originalValue, argument: i, }); } return data; } const dataSource = generateData(0, 360, 0.75);