| <!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 Box Chart 06</title>
|
| <link href="https://playground.anychart.com/docs/samples/BCT_Box_Chart_06/iframe" rel="canonical">
|
| <meta content="Box Chart,Box and Whisker Plot,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: "Jan", low: 1000, q1: 1050, median: 1200, q3: 1800, high: 2000, outliers: [800, 2500, 3200]},
|
| {x: "Feb", low: 2500, q1: 3000, median: 3800, q3: 3900, high: 4000},
|
| {x: "Mar", low: 2000, q1: 2300, median: 2500, q3: 2900, high: 3000},
|
| {x: "Apr", low: 4000, q1: 5000, median: 6500, q3: 6900, high: 7200, outliers: [8930]},
|
| {x: "May", low: 8000, q1: 8400, median: 8500, q3: 8800, high: 9000, outliers: [6950, 3000]}
|
| ];
|
|
|
|
|
| var chart = anychart.box();
|
|
|
|
|
| series = chart.box(data);
|
|
|
|
|
| series.whiskerWidth(30);
|
| series.normal().whiskerStroke("#dd2c00", 0.5);
|
| series.hovered().whiskerStroke("#dd2c00", 1);
|
| series.selected().whiskerStroke("#dd2c00", 2);
|
|
|
|
|
| var title = chart.title("Box Chart: Whiskers");
|
|
|
|
|
| chart.interactivity("by-x");
|
|
|
|
|
| chart.container("container");
|
|
|
|
|
| chart.draw();
|
| });</script>
|
| </body>
|
| </html> |