$(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: 'Курс DKK, грн'}, 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: 'Курс DKK', data: [[1517443200000,4.66072],[1517529600000,4.66526],[1517616000000,4.68052],[1517702400000,4.68052],[1517788800000,4.68052],[1517875200000,4.6366],[1517961600000,4.54883],[1518048000000,4.49553],[1518134400000,4.46539],[1518220800000,4.46135],[1518307200000,4.46135],[1518393600000,4.46135],[1518480000000,4.42052],[1518566400000,4.42064],[1518652800000,4.4186],[1518739200000,4.48781],[1518825600000,4.51678],[1518912000000,4.51678],[1518998400000,4.51678],[1519084800000,4.50078],[1519171200000,4.48592],[1519257600000,4.46219],[1519344000000,4.46314],[1519430400000,4.45734],[1519516800000,4.45734],[1519603200000,4.45734],[1519689600000,4.46852],[1519776000000,4.45191]], 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, 4.660724],[1517443200000, 4.660724],[1517529600000, 4.665255],[1517616000000, 4.680516],[1517702400000, 4.680516],[1517788800000, 4.680516],[1517875200000, 4.636600],[1517961600000, 4.548832],[1518048000000, 4.495527],[1518134400000, 4.465394],[1518220800000, 4.461350],[1518307200000, 4.461350],[1518393600000, 4.461350],[1518480000000, 4.420525],[1518566400000, 4.420641],[1518652800000, 4.418604],[1518739200000, 4.487807],[1518825600000, 4.516782],[1518912000000, 4.516782],[1518998400000, 4.516782],[1519084800000, 4.500778],[1519171200000, 4.485923],[1519257600000, 4.462187],[1519344000000, 4.463135],[1519430400000, 4.457338],[1519516800000, 4.457338],[1519603200000, 4.457338],[1519689600000, 4.468519],[1519776000000, 4.451915]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });