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 data = [
3
{x: "January", low: 760, q1: 801, median: 848, q3: 895, high: 965},
4
{x: "February", low: 733, q1: 853, median: 939, q3: 980, high: 1080, outliers: [1120, 630]},
5
{x: "March", low: 760, q1: 801, median: 848, q3: 895, high: 965, outliers: [650]},
6
{x: "April", low: 724, q1: 802, median: 806, q3: 871, high: 950, outliers: [1000, 600]}
7
];
8
9
var chart = anychart.box(data);
10
11
var series = chart.getSeries(0);
12
13
// Set solid fill.
14
series.fill("#8BC34A");
15
16
chart.title("Set fill parameter as a string");
17
chart.container("container");
18
chart.draw();
19
});