$(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: 'Курс EUR, грн'}, 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: 'Курс EUR', data: [[1017619200000,4.64291],[1017705600000,4.6437],[1017792000000,4.67828],[1017878400000,4.68989],[1017964800000,4.68083],[1018051200000,4.68083],[1018137600000,4.68083],[1018224000000,4.67744],[1018310400000,4.66945],[1018396800000,4.66945],[1018483200000,4.6881],[1018569600000,4.6905],[1018656000000,4.6905],[1018742400000,4.6905],[1018828800000,4.68979],[1018915200000,4.68979],[1019001600000,4.69024],[1019088000000,4.73117],[1019174400000,4.73446],[1019260800000,4.73446],[1019347200000,4.73446],[1019433600000,4.73215],[1019520000000,4.73215],[1019606400000,4.72682],[1019692800000,4.77814],[1019779200000,4.77921],[1019865600000,4.77921],[1019952000000,4.77921],[1020038400000,4.77921],[1020124800000,4.79856]], 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: [[1017619200000, 4.642910],[1017619200000, 4.642910],[1017705600000, 4.643700],[1017792000000, 4.678280],[1017878400000, 4.689890],[1017964800000, 4.680830],[1018051200000, 4.680830],[1018137600000, 4.680830],[1018224000000, 4.677440],[1018310400000, 4.669450],[1018396800000, 4.669450],[1018483200000, 4.688100],[1018569600000, 4.690500],[1018656000000, 4.690500],[1018742400000, 4.690500],[1018828800000, 4.689790],[1018915200000, 4.689790],[1019001600000, 4.690240],[1019088000000, 4.731170],[1019174400000, 4.734460],[1019260800000, 4.734460],[1019347200000, 4.734460],[1019433600000, 4.732150],[1019520000000, 4.732150],[1019606400000, 4.726820],[1019692800000, 4.778140],[1019779200000, 4.779210],[1019865600000, 4.779210],[1019952000000, 4.779210],[1020038400000, 4.779210],[1020124800000, 4.798560]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });