Your search did not match any results.
Charts

Logarithmic Axis

Documentation
In this demo, a logarithmic axis is used to visualize a set of rapidly-growing values.
Copy to Codepen
Apply
Reset
window.onload = function() { var viewModel = { chartOptions: { dataSource: dataSource, commonPaneSettings: { border: { visible: true } }, commonAxisSettings: { grid: { visible: true } }, series: { type: "scatter", valueField: "mass", argumentField: "name", tagField: "type", point: { size: 20 } }, customizePoint: function () { var color, hoverStyle; switch (this.tag) { case "Star": color = "red"; hoverStyle = { border: { color: "red" } }; break; case "Satellite": color = "gray"; hoverStyle = { border: { color: "gray" } }; } return { color: color, hoverStyle: hoverStyle }; }, "export": { enabled: true }, argumentAxis: { label: { rotationAngle: 20, overlappingBehavior: "rotate" } }, valueAxis: { type: "logarithmic", title: "Mass Relative to the Earth" }, title: "Relative Masses of the Heaviest Solar System Objects", legend: { visible: false }, tooltip: { enabled: true } } }; 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.3/css/dx.spa.css" /> <link rel="stylesheet" type="text/css" href="https://cdn3.devexpress.com/jslib/17.1.3/css/dx.common.css" /> <link rel="dx-theme" data-theme="generic.light" href="https://cdn3.devexpress.com/jslib/17.1.3/css/dx.light.css" /> <script src="https://cdn3.devexpress.com/jslib/17.1.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> </div> </body> </html>
#chart { height: 440px; width: 100%; }
var dataSource = [{ name: "Sun", mass: 332837, type: 'Star' }, { name: "Jupiter", mass: 317.83, type: 'Planet' }, { name: "Saturn", mass: 95.159, type: 'Planet' }, { name: "Uranus", mass: 14.536, type: 'Planet' }, { name: "Neptune", mass: 17.147, type: 'Planet' }, { name: "Earth", mass: 1, type: 'Planet' }, { name: "Venus", mass: 0.815, type: "Planet" }, { name: "Mars", mass: 0.107, type: 'Planet' }, { name: "Mercury", mass: 0.0553, type: 'Planet' }, { name: "Moon", mass: 0.0123, type: 'Satellite' }, { name: "Europa (Jupiter's Moon)", mass: 0.00803, type: 'Satellite' }];