$(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: 'Курс SEK, грн'}, 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: 'Курс SEK', data: [[1443657600000,2.53579],[1443744000000,2.5164],[1443830400000,2.5265],[1443916800000,2.5265],[1444003200000,2.5265],[1444089600000,2.54915],[1444176000000,2.56298],[1444262400000,2.57877],[1444348800000,2.58328],[1444435200000,2.63522],[1444521600000,2.63522],[1444608000000,2.63522],[1444694400000,2.66761],[1444780800000,2.69515],[1444867200000,2.69515],[1444953600000,2.66011],[1445040000000,2.58604],[1445126400000,2.58604],[1445212800000,2.58604],[1445299200000,2.60796],[1445385600000,2.65379],[1445472000000,2.72456],[1445558400000,2.6756],[1445644800000,2.65965],[1445731200000,2.65965],[1445817600000,2.65965],[1445904000000,2.68848],[1445990400000,2.68846],[1446076800000,2.71746],[1446163200000,2.67532],[1446249600000,2.69876]], 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: [[1443657600000, 2.535793],[1443657600000, 2.535793],[1443744000000, 2.516403],[1443830400000, 2.526500],[1443916800000, 2.526500],[1444003200000, 2.526500],[1444089600000, 2.549153],[1444176000000, 2.562985],[1444262400000, 2.578771],[1444348800000, 2.583276],[1444435200000, 2.635218],[1444521600000, 2.635218],[1444608000000, 2.635218],[1444694400000, 2.667610],[1444780800000, 2.695154],[1444867200000, 2.695154],[1444953600000, 2.660109],[1445040000000, 2.586037],[1445126400000, 2.586037],[1445212800000, 2.586037],[1445299200000, 2.607958],[1445385600000, 2.653792],[1445472000000, 2.724564],[1445558400000, 2.675600],[1445644800000, 2.659655],[1445731200000, 2.659655],[1445817600000, 2.659655],[1445904000000, 2.688477],[1445990400000, 2.688465],[1446076800000, 2.717461],[1446163200000, 2.675322],[1446249600000, 2.698761]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });