$(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: [[1435708800000,3.15033],[1435795200000,3.12532],[1435881600000,3.11665],[1435968000000,3.12596],[1436054400000,3.12596],[1436140800000,3.12596],[1436227200000,3.13758],[1436313600000,3.17912],[1436400000000,3.24596],[1436486400000,3.23644],[1436572800000,3.28482],[1436659200000,3.28482],[1436745600000,3.28482],[1436832000000,3.252],[1436918400000,3.25133],[1437004800000,3.26119],[1437091200000,3.20208],[1437177600000,3.21251],[1437264000000,3.21251],[1437350400000,3.21251],[1437436800000,3.20435],[1437523200000,3.2071],[1437609600000,3.21615],[1437696000000,3.24538],[1437782400000,3.23611],[1437868800000,3.23611],[1437955200000,3.23611],[1438041600000,3.23611],[1438128000000,3.25654],[1438214400000,3.26308],[1438300800000,3.1733]], 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: [[1435708800000, 3.150332],[1435708800000, 3.150332],[1435795200000, 3.125320],[1435881600000, 3.116649],[1435968000000, 3.125960],[1436054400000, 3.125960],[1436140800000, 3.125960],[1436227200000, 3.137582],[1436313600000, 3.179120],[1436400000000, 3.245959],[1436486400000, 3.236441],[1436572800000, 3.284815],[1436659200000, 3.284815],[1436745600000, 3.284815],[1436832000000, 3.252003],[1436918400000, 3.251332],[1437004800000, 3.261186],[1437091200000, 3.202076],[1437177600000, 3.212507],[1437264000000, 3.212507],[1437350400000, 3.212507],[1437436800000, 3.204352],[1437523200000, 3.207098],[1437609600000, 3.216145],[1437696000000, 3.245378],[1437782400000, 3.236108],[1437868800000, 3.236108],[1437955200000, 3.236108],[1438041600000, 3.236108],[1438128000000, 3.256537],[1438214400000, 3.263079],[1438300800000, 3.173303]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });