$(document).ready(function () { chart = new Highcharts.StockChart({ chart: { renderTo: 'chart', type: 'line', animation: false, showAxes: true, height: 500 }, xAxis: { ordinal: false, type: 'datetime', showEmpty: true, gridLineWidth: 1, gridLineDashStyle: 'dot', ordinal: false }, yAxis: { title: {text: 'Курс CHF, грн'}, lineWidth: 3, gridLineWidth: 1, gridLineDashStyle: 'dash', ordinal: false }, plotOptions: { series: {connectNulls: true, shadow: false}, spline: {marker: {enabled: true}} }, tooltip: {valueDecimals: 8, xDateFormat: '%d %b %Y', shared: true}, series: [ { name: 'Курс CHF', data: [[1517443200000,29.8209],[1517529600000,29.9255],[1517616000000,30.0419],[1517702400000,30.0419],[1517788800000,30.0419],[1517875200000,29.7539],[1517961600000,29.2598],[1518048000000,28.8202],[1518134400000,28.7601],[1518220800000,28.8774],[1518307200000,28.8774],[1518393600000,28.8774],[1518480000000,28.6137],[1518566400000,28.5788],[1518652800000,28.5731],[1518739200000,28.9571],[1518825600000,29.2001],[1518912000000,29.2001],[1518998400000,29.2001],[1519084800000,29.1165],[1519171200000,28.9573],[1519257600000,28.7661],[1519344000000,28.8785],[1519430400000,28.8512],[1519516800000,28.8512],[1519603200000,28.8512],[1519689600000,28.857],[1519776000000,28.7278]], tooltip: {valueSuffix: ' грн'}, type: 'area', step: true, color: '#888888', fillColor: { linearGradient: {x1: 0, y1: 0, x2: 0, y2: 1}, stops: [[0, '#CCCCCC'], [1, 'rgba(50,50,50,0)']] }, threshold: null }, { name: 'Среднее за период', data: [[1517443200000, 29.820857],[1517443200000, 29.820857],[1517529600000, 29.925504],[1517616000000, 30.041923],[1517702400000, 30.041923],[1517788800000, 30.041923],[1517875200000, 29.753949],[1517961600000, 29.259789],[1518048000000, 28.820160],[1518134400000, 28.760150],[1518220800000, 28.877351],[1518307200000, 28.877351],[1518393600000, 28.877351],[1518480000000, 28.613703],[1518566400000, 28.578779],[1518652800000, 28.573053],[1518739200000, 28.957145],[1518825600000, 29.200108],[1518912000000, 29.200108],[1518998400000, 29.200108],[1519084800000, 29.116473],[1519171200000, 28.957280],[1519257600000, 28.766058],[1519344000000, 28.878514],[1519430400000, 28.851239],[1519516800000, 28.851239],[1519603200000, 28.851239],[1519689600000, 28.857020],[1519776000000, 28.727760]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });