$(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: [[1498867200000,3.08075],[1498953600000,3.08075],[1499040000000,3.08075],[1499126400000,3.06701],[1499212800000,3.05345],[1499299200000,3.07457],[1499385600000,3.08064],[1499472000000,3.08849],[1499558400000,3.08849],[1499644800000,3.08849],[1499731200000,3.07886],[1499817600000,3.07305],[1499904000000,3.07889],[1499990400000,3.10682],[1500076800000,3.11531],[1500163200000,3.11531],[1500249600000,3.11531],[1500336000000,3.11959],[1500422400000,3.13223],[1500508800000,3.12992],[1500595200000,3.11239],[1500681600000,3.13337],[1500768000000,3.13337],[1500854400000,3.13337],[1500940800000,3.13697],[1501027200000,3.16308],[1501113600000,3.14929],[1501200000000,3.16092],[1501286400000,3.18771],[1501372800000,3.18771],[1501459200000,3.18771]], 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: [[1498867200000, 3.080755],[1498867200000, 3.080755],[1498953600000, 3.080755],[1499040000000, 3.080755],[1499126400000, 3.067014],[1499212800000, 3.053446],[1499299200000, 3.074569],[1499385600000, 3.080642],[1499472000000, 3.088494],[1499558400000, 3.088494],[1499644800000, 3.088494],[1499731200000, 3.078862],[1499817600000, 3.073045],[1499904000000, 3.078893],[1499990400000, 3.106821],[1500076800000, 3.115307],[1500163200000, 3.115307],[1500249600000, 3.115307],[1500336000000, 3.119589],[1500422400000, 3.132231],[1500508800000, 3.129915],[1500595200000, 3.112386],[1500681600000, 3.133370],[1500768000000, 3.133370],[1500854400000, 3.133370],[1500940800000, 3.136968],[1501027200000, 3.163080],[1501113600000, 3.149295],[1501200000000, 3.160923],[1501286400000, 3.187708],[1501372800000, 3.187708],[1501459200000, 3.187708]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });