$(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: [[1493596800000,26.5609],[1493683200000,26.5609],[1493769600000,26.5609],[1493856000000,26.5234],[1493942400000,26.4858],[1494028800000,26.5093],[1494115200000,26.5093],[1494201600000,26.5093],[1494288000000,26.5093],[1494374400000,26.5093],[1494460800000,26.4559],[1494547200000,26.4289],[1494633600000,26.4743],[1494720000000,26.4743],[1494806400000,26.4743],[1494892800000,26.4719],[1494979200000,26.4334],[1495065600000,26.4174],[1495152000000,26.3934],[1495238400000,26.3697],[1495324800000,26.3697],[1495411200000,26.3697],[1495497600000,26.3419],[1495584000000,26.3045],[1495670400000,26.2661],[1495756800000,26.2767],[1495843200000,26.3454],[1495929600000,26.3454],[1496016000000,26.3454],[1496102400000,26.3878],[1496188800000,26.3528]], 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: [[1493596800000, 26.560930],[1493596800000, 26.560930],[1493683200000, 26.560930],[1493769600000, 26.560930],[1493856000000, 26.523425],[1493942400000, 26.485778],[1494028800000, 26.509341],[1494115200000, 26.509341],[1494201600000, 26.509341],[1494288000000, 26.509341],[1494374400000, 26.509341],[1494460800000, 26.455859],[1494547200000, 26.428930],[1494633600000, 26.474312],[1494720000000, 26.474312],[1494806400000, 26.474312],[1494892800000, 26.471947],[1494979200000, 26.433401],[1495065600000, 26.417446],[1495152000000, 26.393442],[1495238400000, 26.369659],[1495324800000, 26.369659],[1495411200000, 26.369659],[1495497600000, 26.341917],[1495584000000, 26.304507],[1495670400000, 26.266118],[1495756800000, 26.276670],[1495843200000, 26.345368],[1495929600000, 26.345368],[1496016000000, 26.345368],[1496102400000, 26.387789],[1496188800000, 26.352778]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });