$(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: 'Курс XDR, грн'}, 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: 'Курс XDR', data: [[1446336000000,32.1193],[1446422400000,32.1193],[1446508800000,32.1707],[1446595200000,32.1158],[1446681600000,32.1592],[1446768000000,31.8662],[1446854400000,31.4226],[1446940800000,31.4226],[1447027200000,31.4226],[1447113600000,31.4393],[1447200000000,31.4041],[1447286400000,31.4014],[1447372800000,31.6289],[1447459200000,31.9166],[1447545600000,31.9166],[1447632000000,31.9166],[1447718400000,32.0549],[1447804800000,32.7552],[1447891200000,32.9532],[1447977600000,32.9188],[1448064000000,33.0945],[1448150400000,33.0945],[1448236800000,33.0945],[1448323200000,33.1009],[1448409600000,32.9715],[1448496000000,32.6518],[1448582400000,32.4124],[1448668800000,32.8071],[1448755200000,32.8071],[1448841600000,32.8071]], 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: [[1446336000000, 32.119348],[1446336000000, 32.119348],[1446422400000, 32.119348],[1446508800000, 32.170712],[1446595200000, 32.115790],[1446681600000, 32.159194],[1446768000000, 31.866158],[1446854400000, 31.422638],[1446940800000, 31.422638],[1447027200000, 31.422638],[1447113600000, 31.439324],[1447200000000, 31.404084],[1447286400000, 31.401398],[1447372800000, 31.628950],[1447459200000, 31.916613],[1447545600000, 31.916613],[1447632000000, 31.916613],[1447718400000, 32.054920],[1447804800000, 32.755165],[1447891200000, 32.953166],[1447977600000, 32.918768],[1448064000000, 33.094544],[1448150400000, 33.094544],[1448236800000, 33.094544],[1448323200000, 33.100936],[1448409600000, 32.971495],[1448496000000, 32.651835],[1448582400000, 32.412363],[1448668800000, 32.807061],[1448755200000, 32.807061],[1448841600000, 32.807061]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });