$(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: 'Курс USD, грн'}, 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: 'Курс USD', data: [[1448928000000,23.9481],[1449014400000,23.8416],[1449100800000,23.6477],[1449187200000,23.0888],[1449273600000,23.6486],[1449360000000,23.6486],[1449446400000,23.6486],[1449532800000,23.4507],[1449619200000,22.9132],[1449705600000,22.8949],[1449792000000,23.3683],[1449878400000,23.8601],[1449964800000,23.8601],[1450051200000,23.8601],[1450137600000,23.8116],[1450224000000,23.4513],[1450310400000,23.5193],[1450396800000,23.4877],[1450483200000,23.5464],[1450569600000,23.5464],[1450656000000,23.5464],[1450742400000,23.5182],[1450828800000,23.1468],[1450915200000,22.9973],[1451001600000,22.9645],[1451088000000,23.1375],[1451174400000,23.1375],[1451260800000,23.1375],[1451347200000,23.8075],[1451433600000,23.7907],[1451520000000,24.0007]], 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, 23.948086],[1448928000000, 23.948086],[1449014400000, 23.841563],[1449100800000, 23.647700],[1449187200000, 23.088807],[1449273600000, 23.648624],[1449360000000, 23.648624],[1449446400000, 23.648624],[1449532800000, 23.450698],[1449619200000, 22.913187],[1449705600000, 22.894918],[1449792000000, 23.368319],[1449878400000, 23.860094],[1449964800000, 23.860094],[1450051200000, 23.860094],[1450137600000, 23.811620],[1450224000000, 23.451305],[1450310400000, 23.519276],[1450396800000, 23.487675],[1450483200000, 23.546414],[1450569600000, 23.546414],[1450656000000, 23.546414],[1450742400000, 23.518152],[1450828800000, 23.146841],[1450915200000, 22.997289],[1451001600000, 22.964482],[1451088000000, 23.137486],[1451174400000, 23.137486],[1451260800000, 23.137486],[1451347200000, 23.807482],[1451433600000, 23.790721],[1451520000000, 24.000667]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });