$(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: [[1154390400000,0.18829],[1154476800000,0.18814],[1154563200000,0.18871],[1154649600000,0.1884],[1154736000000,0.18864],[1154822400000,0.18864],[1154908800000,0.18864],[1154995200000,0.18917],[1155081600000,0.18889],[1155168000000,0.18886],[1155254400000,0.18932],[1155340800000,0.18848],[1155427200000,0.18848],[1155513600000,0.18848],[1155600000000,0.1883],[1155686400000,0.1882],[1155772800000,0.18857],[1155859200000,0.18898],[1155945600000,0.18888],[1156032000000,0.18888],[1156118400000,0.18888],[1156204800000,0.1891],[1156291200000,0.18916],[1156377600000,0.1887],[1156464000000,0.1887],[1156550400000,0.1887],[1156636800000,0.1887],[1156723200000,0.1887],[1156809600000,0.18866],[1156896000000,0.18882],[1156982400000,0.18887]], 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: [[1154390400000, 0.188290],[1154390400000, 0.188290],[1154476800000, 0.188140],[1154563200000, 0.188710],[1154649600000, 0.188400],[1154736000000, 0.188640],[1154822400000, 0.188640],[1154908800000, 0.188640],[1154995200000, 0.189170],[1155081600000, 0.188890],[1155168000000, 0.188860],[1155254400000, 0.189320],[1155340800000, 0.188480],[1155427200000, 0.188480],[1155513600000, 0.188480],[1155600000000, 0.188300],[1155686400000, 0.188200],[1155772800000, 0.188570],[1155859200000, 0.188980],[1155945600000, 0.188880],[1156032000000, 0.188880],[1156118400000, 0.188880],[1156204800000, 0.189100],[1156291200000, 0.189160],[1156377600000, 0.188700],[1156464000000, 0.188700],[1156550400000, 0.188700],[1156636800000, 0.188700],[1156723200000, 0.188700],[1156809600000, 0.188660],[1156896000000, 0.188820],[1156982400000, 0.188870]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });