| <!doctype html>
|
| <html lang="en">
|
| <head>
|
| <meta charset="UTF-8">
|
| <meta content="IE=edge" http-equiv="X-UA-Compatible">
|
| <meta content="width=device-width, initial-scale=1" name="viewport">
|
| <title>BCT Scatter Chart 04</title>
|
| <link href="https://playground.anychart.com/docs/samples/BCT_Scatter_Chart_04/iframe" rel="canonical">
|
| <meta content="Dot Chart,Marker Chart,Scatter Chart,Statistical Data" name="keywords">
|
| <meta content="AnyChart - JavaScript Charts designed to be embedded and integrated" name="description">
|
| |
| |
| |
|
|
| <link href="_deps/cdn.anychart.com/releases/8.14.1/css/anychart-ui.min_qe95e7e741b.css" rel="stylesheet" type="text/css">
|
| <style>html, body, #container {
|
| width: 100%;
|
| height: 100%;
|
| margin: 0;
|
| padding: 0;
|
| }</style>
|
| </head>
|
| <body>
|
| <div id="container"></div>
|
| <script src="_deps/cdn.anychart.com/releases/8.14.1/js/anychart-base.min_qe95e7e741b.js"></script>
|
| <script src="_deps/cdn.anychart.com/releases/8.14.1/js/anychart-exports.min_qe95e7e741b.js"></script>
|
| <script src="_deps/cdn.anychart.com/releases/8.14.1/js/anychart-ui.min_qe95e7e741b.js"></script>
|
| <script type="text/javascript">anychart.onDocumentReady(function () {
|
|
|
|
|
| var data = [
|
| {x: 0.5, value: 105},
|
| {x: 1, value: 109},
|
| {x: 2.4, value: 133},
|
| {x: 2.9, value: 116},
|
| {x: 2.4, value: 119},
|
| {x: 4.6, value: 115},
|
| {x: 4.1, value: 117},
|
| {x: 3.9, value: 125},
|
| {x: 5, value: 128}
|
| ];
|
|
|
|
|
| var chart = anychart.scatter();
|
|
|
|
|
| var series = chart.marker(data);
|
|
|
|
|
| var error = series.error();
|
| error.valueLowerError(7);
|
| error.valueUpperError(4);
|
| error.xLowerError(0.1);
|
| error.xUpperError(0.2);
|
|
|
|
|
| chart.xGrid(true);
|
| chart.yGrid(true);
|
|
|
|
|
| chart.xMinorGrid(true);
|
| chart.yMinorGrid(true);
|
|
|
|
|
| chart.title("Scatter Plot: Error Bars");
|
|
|
|
|
| chart.container("container");
|
|
|
|
|
| chart.draw();
|
| });</script>
|
| </body>
|
| </html> |