$(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: 'Курс PLN, грн'}, 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: 'Курс PLN', data: [[1448928000000,5.93026],[1449014400000,5.92143],[1449100800000,5.87318],[1449187200000,5.74863],[1449273600000,5.97754],[1449360000000,5.97754],[1449446400000,5.97754],[1449532800000,5.87667],[1449619200000,5.74719],[1449705600000,5.7712],[1449792000000,5.89365],[1449878400000,6.01224],[1449964800000,6.01224],[1450051200000,6.01224],[1450137600000,5.99027],[1450224000000,5.91979],[1450310400000,5.95416],[1450396800000,5.92728],[1450483200000,5.96059],[1450569600000,5.96059],[1450656000000,5.96059],[1450742400000,6.02902],[1450828800000,5.98212],[1450915200000,5.9111],[1451001600000,5.92738],[1451088000000,5.97204],[1451174400000,5.97204],[1451260800000,5.97204],[1451347200000,6.14716],[1451433600000,6.15041],[1451520000000,6.1847]], 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, 5.930264],[1448928000000, 5.930264],[1449014400000, 5.921427],[1449100800000, 5.873184],[1449187200000, 5.748633],[1449273600000, 5.977540],[1449360000000, 5.977540],[1449446400000, 5.977540],[1449532800000, 5.876674],[1449619200000, 5.747190],[1449705600000, 5.771203],[1449792000000, 5.893649],[1449878400000, 6.012243],[1449964800000, 6.012243],[1450051200000, 6.012243],[1450137600000, 5.990266],[1450224000000, 5.919789],[1450310400000, 5.954157],[1450396800000, 5.927277],[1450483200000, 5.960588],[1450569600000, 5.960588],[1450656000000, 5.960588],[1450742400000, 6.029015],[1450828800000, 5.982118],[1450915200000, 5.911098],[1451001600000, 5.927383],[1451088000000, 5.972038],[1451174400000, 5.972038],[1451260800000, 5.972038],[1451347200000, 6.147159],[1451433600000, 6.150410],[1451520000000, 6.184700]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });