$(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: [[1435708800000,0.37616],[1435795200000,0.37866],[1435881600000,0.37753],[1435968000000,0.37799],[1436054400000,0.37799],[1436140800000,0.37799],[1436227200000,0.37698],[1436313600000,0.37925],[1436400000000,0.384],[1436486400000,0.38343],[1436572800000,0.38675],[1436659200000,0.38675],[1436745600000,0.38675],[1436832000000,0.388],[1436918400000,0.38604],[1437004800000,0.39015],[1437091200000,0.38607],[1437177600000,0.3873],[1437264000000,0.3873],[1437350400000,0.3873],[1437436800000,0.38766],[1437523200000,0.38632],[1437609600000,0.38602],[1437696000000,0.38383],[1437782400000,0.38033],[1437868800000,0.38033],[1437955200000,0.38033],[1438041600000,0.38033],[1438128000000,0.36597],[1438214400000,0.36933],[1438300800000,0.36636]], 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: [[1435708800000, 0.376160],[1435708800000, 0.376160],[1435795200000, 0.378660],[1435881600000, 0.377530],[1435968000000, 0.377990],[1436054400000, 0.377990],[1436140800000, 0.377990],[1436227200000, 0.376980],[1436313600000, 0.379250],[1436400000000, 0.384000],[1436486400000, 0.383430],[1436572800000, 0.386750],[1436659200000, 0.386750],[1436745600000, 0.386750],[1436832000000, 0.388000],[1436918400000, 0.386040],[1437004800000, 0.390150],[1437091200000, 0.386070],[1437177600000, 0.387300],[1437264000000, 0.387300],[1437350400000, 0.387300],[1437436800000, 0.387660],[1437523200000, 0.386320],[1437609600000, 0.386020],[1437696000000, 0.383830],[1437782400000, 0.380330],[1437868800000, 0.380330],[1437955200000, 0.380330],[1438041600000, 0.380330],[1438128000000, 0.365970],[1438214400000, 0.369330],[1438300800000, 0.366360]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });