$(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: 'Курс RUB, грн'}, 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: 'Курс RUB', data: [[1033430400000,0.16817],[1033516800000,0.16817],[1033603200000,0.16822],[1033689600000,0.16823],[1033776000000,0.16823],[1033862400000,0.16823],[1033948800000,0.16823],[1034035200000,0.16823],[1034121600000,0.16823],[1034208000000,0.16829],[1034294400000,0.16828],[1034380800000,0.16828],[1034467200000,0.16828],[1034553600000,0.16828],[1034640000000,0.16825],[1034726400000,0.16825],[1034812800000,0.16825],[1034899200000,0.16827],[1034985600000,0.16827],[1035072000000,0.16827],[1035158400000,0.16814],[1035244800000,0.16798],[1035331200000,0.16805],[1035417600000,0.16807],[1035504000000,0.16797],[1035590400000,0.16797],[1035676800000,0.16797],[1035763200000,0.16793],[1035849600000,0.16793],[1035936000000,0.16793],[1036022400000,0.16793]], 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: [[1033430400000, 0.168170],[1033430400000, 0.168170],[1033516800000, 0.168170],[1033603200000, 0.168220],[1033689600000, 0.168230],[1033776000000, 0.168230],[1033862400000, 0.168230],[1033948800000, 0.168230],[1034035200000, 0.168230],[1034121600000, 0.168230],[1034208000000, 0.168290],[1034294400000, 0.168280],[1034380800000, 0.168280],[1034467200000, 0.168280],[1034553600000, 0.168280],[1034640000000, 0.168250],[1034726400000, 0.168250],[1034812800000, 0.168250],[1034899200000, 0.168270],[1034985600000, 0.168270],[1035072000000, 0.168270],[1035158400000, 0.168140],[1035244800000, 0.167980],[1035331200000, 0.168050],[1035417600000, 0.168070],[1035504000000, 0.167970],[1035590400000, 0.167970],[1035676800000, 0.167970],[1035763200000, 0.167930],[1035849600000, 0.167930],[1035936000000, 0.167930],[1036022400000, 0.167930]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });