$(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: [[1128124800000,0.17698],[1128211200000,0.17698],[1128297600000,0.17698],[1128384000000,0.17649],[1128470400000,0.17631],[1128556800000,0.17648],[1128643200000,0.17706],[1128729600000,0.17746],[1128816000000,0.17746],[1128902400000,0.17746],[1128988800000,0.17737],[1129075200000,0.17684],[1129161600000,0.17642],[1129248000000,0.17658],[1129334400000,0.17666],[1129420800000,0.17666],[1129507200000,0.17666],[1129593600000,0.17701],[1129680000000,0.17649],[1129766400000,0.17613],[1129852800000,0.17644],[1129939200000,0.17678],[1130025600000,0.17678],[1130112000000,0.17678],[1130198400000,0.17642],[1130284800000,0.17652],[1130371200000,0.17742],[1130457600000,0.17732],[1130544000000,0.17766],[1130630400000,0.17766],[1130716800000,0.17766]], 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: [[1128124800000, 0.176980],[1128124800000, 0.176980],[1128211200000, 0.176980],[1128297600000, 0.176980],[1128384000000, 0.176490],[1128470400000, 0.176310],[1128556800000, 0.176480],[1128643200000, 0.177060],[1128729600000, 0.177460],[1128816000000, 0.177460],[1128902400000, 0.177460],[1128988800000, 0.177370],[1129075200000, 0.176840],[1129161600000, 0.176420],[1129248000000, 0.176580],[1129334400000, 0.176660],[1129420800000, 0.176660],[1129507200000, 0.176660],[1129593600000, 0.177010],[1129680000000, 0.176490],[1129766400000, 0.176130],[1129852800000, 0.176440],[1129939200000, 0.176780],[1130025600000, 0.176780],[1130112000000, 0.176780],[1130198400000, 0.176420],[1130284800000, 0.176520],[1130371200000, 0.177420],[1130457600000, 0.177320],[1130544000000, 0.177660],[1130630400000, 0.177660],[1130716800000, 0.177660]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });