HTMLcopy
1
<div id="container"></div>
CSScopy
6
1
html, body, #container {
2
width: 100%;
3
height: 100%;
4
margin: 0;
5
padding: 0;
6
}
JavaScriptcopy
x
1
anychart.onDocumentReady(function () {
2
var chart = anychart.box();
3
4
var series = chart.box([
5
{x: 'January', low: 760, q1: 801, median: 848, q3: 895, high: 965},
6
{x: 'February', low: 733, q1: 853, median: 939, q3: 980, high: 1080, outliers: [1120, 630]},
7
{x: 'March', low: 760, q1: 801, median: 848, q3: 895, high: 965, outliers: [650]},
8
{x: 'April', low: 724, q1: 802, median: 806, q3: 871, high: 950, outliers: [1000, 600]}
9
]);
10
11
var state = series.normal();
12
13
// Set stem stroke.
14
state.stemStroke('#F44336', 2, '5 2');
15
16
chart.title('Set state stem stroke parameters');
17
chart.container('container');
18
chart.draw();
19
});