$(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: [[1385856000000,1.45856],[1385942400000,1.45856],[1386028800000,1.45035],[1386115200000,1.45493],[1386201600000,1.45643],[1386288000000,1.4566],[1386374400000,1.46371],[1386460800000,1.46371],[1386547200000,1.46371],[1386633600000,1.4702],[1386720000000,1.47316],[1386806400000,1.47494],[1386892800000,1.47578],[1386979200000,1.47056],[1387065600000,1.47056],[1387152000000,1.47056],[1387238400000,1.47593],[1387324800000,1.473],[1387411200000,1.47301],[1387497600000,1.46435],[1387584000000,1.46293],[1387670400000,1.46293],[1387756800000,1.46293],[1387843200000,1.46786],[1387929600000,1.46607],[1388016000000,1.46607],[1388102400000,1.46607],[1388188800000,1.48012],[1388275200000,1.48012],[1388361600000,1.48012],[1388448000000,1.48012]], 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: [[1385856000000, 1.458563],[1385856000000, 1.458563],[1385942400000, 1.458563],[1386028800000, 1.450351],[1386115200000, 1.454929],[1386201600000, 1.456429],[1386288000000, 1.456604],[1386374400000, 1.463705],[1386460800000, 1.463705],[1386547200000, 1.463705],[1386633600000, 1.470201],[1386720000000, 1.473162],[1386806400000, 1.474943],[1386892800000, 1.475781],[1386979200000, 1.470559],[1387065600000, 1.470559],[1387152000000, 1.470559],[1387238400000, 1.475927],[1387324800000, 1.472995],[1387411200000, 1.473015],[1387497600000, 1.464348],[1387584000000, 1.462925],[1387670400000, 1.462925],[1387756800000, 1.462925],[1387843200000, 1.467862],[1387929600000, 1.466071],[1388016000000, 1.466071],[1388102400000, 1.466071],[1388188800000, 1.480118],[1388275200000, 1.480118],[1388361600000, 1.480118],[1388448000000, 1.480118]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });