Your search did not match any results.
Charts

Scatter

Documentation
Scatter charts can be used whenever you need to allow the user to draw their own conclusions about information displayed within the chart.
Copy to Codepen
Apply
Reset
var DemoApp = angular.module('DemoApp', ['dx']); DemoApp.controller('DemoController', function DemoController($scope) { var dataSource = generateDataSource(); $scope.chartOptions = { dataSource: dataSource, commonSeriesSettings: { type: "scatter" }, series: [{ argumentField: "x1", valueField: "y1" }, { argumentField: "x2", valueField: "y2", point: { symbol: "triangleDown" } }], argumentAxis:{ grid:{ visible: true }, tickInterval: 5, minorGrid: { visible: true } }, valueAxis: { tickInterval: 50 }, legend: { visible: false }, commonPaneSettings: { border:{ visible: true } } }; function generateDataSource() { var b1 = random(-100, 100) / 10, b2 = random(-100, 100) / 10, k1 = random(-100, 100) / 10, k2 = random(-100, 100) / 10, deviation1, deviation2, ds = [], i, x1, x2, y1, y2, isNegativeDelta, delta1, delta2; if (k1 < 0.1 && k1 >= 0) { k1 = 0.1; } if (k1 > -0.1 && k1 < 0) { k1 = -0.1; } if (k2 < 0.1 && k2 >= 0) { k2 = 0.1; } if (k2 > -0.1 && k2 < 0) { k2 = -0.1; } deviation1 = Math.abs(k1 * 8); deviation2 = Math.abs(k2 * 8); for (i = 0; i < 30; i++) { x1 = random(1, 20); x2 = random(1, 20); isNegativeDelta = random(0, 1) === 0; delta1 = deviation1 * Math.random(); delta2 = deviation2 * Math.random(); if (isNegativeDelta) { delta1 = -delta1; delta2 = -delta2; } y1 = k1 * x1 + b1 + delta1; y2 = k2 * x2 + b2 + delta2; ds.push({x1: x1, y1: y1, x2: x2, y2: y2}); } return ds; } function random(min, max) { return Math.floor(Math.random() * (max - min + 1)) + min; } });
<!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> <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://ajax.googleapis.com/ajax/libs/angularjs/1.3.16/angular.min.js"></script> <script>window.angular || document.write(decodeURIComponent('%3Cscript src="js/angular.min.js"%3E%3C\/script%3E'))</script> <script src="https://cdn3.devexpress.com/jslib/17.1.3/js/dx.all.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" ng-app="DemoApp" ng-controller="DemoController"> <div id="chart" dx-chart="chartOptions"></div> </div> </body> </html>
#chart { height: 440px; }