File size: 2,665 Bytes
7b52e07
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<!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>CS Interactivity 10</title>
  <link href="https://playground.anychart.com/docs/samples/CS_Interactivity_10/iframe" rel="canonical">
  <meta content="Box Chart,Box and Whisker Plot,Stagger Axis feature,Statistical Data" name="keywords">
  <meta content="AnyChart - JavaScript Charts designed to be embedded and integrated" name="description">
  <!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
  <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: "East Europe", low: 1, q1: 5, median: 8, q3: 12, high: 16},
    {x: "West Europe", low: 1, q1: 7, median: 10, q3: 17, high: 22},
    {x: "Australia", low: 1, q1: 8, median: 12, q3: 19, high: 26},
    {x: "South America", low: 2, q1: 8, median: 12, q3: 21, high: 28},
    {x: "North America", low: 3, q1: 10, median: 17, q3: 28, high: 30},
    {x: "Oceania", low: 1, q1: 9, median: 16, q3: 22, high: 24},
    {x: "North Africa", low: 1, q1: 8, median: 14, q3: 18, high: 24},
    {x: "West Africa", low: 1, q1: 6, median: 8, q3: 13, high: 16},
    {x: "Central Africa", low: 2, q1: 4, median: 9, q3: 12, high: 15},
    {x: "Southern Africa", low: 1, q1: 4, median: 8, q3: 11, high: 14}
  ];

  // create box chart
  var chart = anychart.box();

  // set chart title text settings
  chart.title("Oceanic Airlines Delays December, 2014");

  // set axes settings
  var xAxis = chart.xAxis();
  xAxis.staggerMode(true);

  var series = chart.box(data);

  // change the selected points look
  series.selected().hatchFill("soliddiamond", "#FFF", 1, 5);
  series.selected().stroke("none");
  series.select([2,4,9]);

  // set container id for the chart
  chart.container("container");

  // initiate chart drawing
  chart.draw();
});</script>
 </body>
</html>