$(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: 'Курс MDL, грн'}, 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: 'Курс MDL', data: [[1448928000000,1.19093],[1449014400000,1.19089],[1449100800000,1.18356],[1449187200000,1.15508],[1449273600000,1.18133],[1449360000000,1.18133],[1449446400000,1.18133],[1449532800000,1.17034],[1449619200000,1.14381],[1449705600000,1.14418],[1449792000000,1.16826],[1449878400000,1.1948],[1449964800000,1.1948],[1450051200000,1.1948],[1450137600000,1.1975],[1450224000000,1.18176],[1450310400000,1.18975],[1450396800000,1.19223],[1450483200000,1.20062],[1450569600000,1.20062],[1450656000000,1.20062],[1450742400000,1.20067],[1450828800000,1.17997],[1450915200000,1.16886],[1451001600000,1.16366],[1451088000000,1.17243],[1451174400000,1.17243],[1451260800000,1.17243],[1451347200000,1.20416],[1451433600000,1.20626],[1451520000000,1.21991]], 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: [[1448928000000, 1.190926],[1448928000000, 1.190926],[1449014400000, 1.190893],[1449100800000, 1.183557],[1449187200000, 1.155076],[1449273600000, 1.181327],[1449360000000, 1.181327],[1449446400000, 1.181327],[1449532800000, 1.170341],[1449619200000, 1.143806],[1449705600000, 1.144180],[1449792000000, 1.168258],[1449878400000, 1.194797],[1449964800000, 1.194797],[1450051200000, 1.194797],[1450137600000, 1.197503],[1450224000000, 1.181765],[1450310400000, 1.189753],[1450396800000, 1.192231],[1450483200000, 1.200619],[1450569600000, 1.200619],[1450656000000, 1.200619],[1450742400000, 1.200671],[1450828800000, 1.179974],[1450915200000, 1.168864],[1451001600000, 1.163660],[1451088000000, 1.172427],[1451174400000, 1.172427],[1451260800000, 1.172427],[1451347200000, 1.204162],[1451433600000, 1.206255],[1451520000000, 1.219912]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });