| <!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>anychart.core.cartesian.series.Box.fill set asArray</title>
|
| <link href="https://playground.anychart.com/api/core/cartesian/series/_samples/anychart.core.cartesian.series.Box.fill_set_asArray/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.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.js"></script>
|
| <script src="_deps/cdn.anychart.com/releases/8.14.1/js/anychart-exports.min.js"></script>
|
| <script src="_deps/cdn.anychart.com/releases/8.14.1/js/anychart-ui.min.js"></script>
|
| <script type="text/javascript">anychart.onDocumentReady(function () {
|
| var data = [
|
| {x: 'January', low: 760, q1: 801, median: 848, q3: 895, high: 965},
|
| {x: 'February', low: 733, q1: 853, median: 939, q3: 980, high: 1080, outliers: [1120, 630]},
|
| {x: 'March', low: 760, q1: 801, median: 848, q3: 895, high: 965, outliers: [650]},
|
| {x: 'April', low: 724, q1: 802, median: 806, q3: 871, high: 950, outliers: [1000, 600]}
|
| ];
|
|
|
| var chart = anychart.box(data);
|
|
|
| var series = chart.getSeries(0);
|
|
|
|
|
| series.fill([{offset: 0.2, color: '#DCE35B', opacity: 0.6}, '#45B649 0.6']);
|
|
|
| chart.title('Set fill parameter as an array');
|
| chart.container('container');
|
| chart.draw();
|
| });</script>
|
| </body>
|
| </html> |