$(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: [[1264982400000,11.1714],[1265068800000,11.1294],[1265155200000,11.1502],[1265241600000,11.1889],[1265328000000,11.0793],[1265414400000,10.9533],[1265500800000,10.9533],[1265587200000,10.9533],[1265673600000,10.9501],[1265760000000,11.0208],[1265846400000,11.0057],[1265932800000,10.9881],[1266019200000,10.861],[1266105600000,10.861],[1266192000000,10.861],[1266278400000,10.8883],[1266364800000,10.9225],[1266451200000,10.9841],[1266537600000,10.8532],[1266624000000,10.8125],[1266710400000,10.8125],[1266796800000,10.8125],[1266883200000,10.8876],[1266969600000,10.848],[1267056000000,10.8241],[1267142400000,10.7777],[1267228800000,10.8424],[1267315200000,10.8424]], 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: [[1264982400000, 11.171403],[1264982400000, 11.171403],[1265068800000, 11.129426],[1265155200000, 11.150157],[1265241600000, 11.188878],[1265328000000, 11.079262],[1265414400000, 10.953348],[1265500800000, 10.953348],[1265587200000, 10.953348],[1265673600000, 10.950120],[1265760000000, 11.020797],[1265846400000, 11.005740],[1265932800000, 10.988118],[1266019200000, 10.860993],[1266105600000, 10.860993],[1266192000000, 10.860993],[1266278400000, 10.888321],[1266364800000, 10.922476],[1266451200000, 10.984094],[1266537600000, 10.853193],[1266624000000, 10.812496],[1266710400000, 10.812496],[1266796800000, 10.812496],[1266883200000, 10.887583],[1266969600000, 10.848023],[1267056000000, 10.824053],[1267142400000, 10.777711],[1267228800000, 10.842430],[1267315200000, 10.842430]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });