JavaScript Scatter Charts are used to plot data with two numeric parameters. Also referred as scatter plot/point chart, its rich feature sets include tooltip, multiple axis, zooming and panning, etc.
Plot multiple scatter series in a single chart to compare different data sets. Legend and tooltip for the series can make it more readable.
Support different types of symbol to display the data points in scatter plot. This will be useful in differentiating the multiple series and points in same chart.
Data labels display information about data points. Add a template to display data labels with HTML elements such as images, DIV, and spans for more informative data labels. You can rotate a data label by its given angle.
Customize the look and feel of the scatter chart using built-in APIs.
import { Chart, ScatterSeries } from '@syncfusion/ej2-charts';
import { scatterData } from '../scatter-data';
Chart.Inject(Chart, ScatterSeries);
let chart: Chart = new Chart({
series:[{
type: 'Scatter',
dataSource: scatterData.getMaleData,
xName: 'x',
yName: 'y',
},
],
}, '#Chart');
<!DOCTYPE html>
<html>
<head></head>
<body style = 'overflow: hidden'>
<div id="container">
<div id="Chart"></div>
</div>
<style>
#control-container {
padding: 0px !important;
}
</style>
</body>
</html>