$(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: 'Курс BYN, грн'}, 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: 'Курс BYN', data: [[1435708800000,0.00137],[1435795200000,0.00137],[1435881600000,0.00136],[1435968000000,0.00137],[1436054400000,0.00137],[1436140800000,0.00137],[1436227200000,0.00138],[1436313600000,0.00141],[1436400000000,0.00142],[1436486400000,0.00141],[1436572800000,0.00142],[1436659200000,0.00142],[1436745600000,0.00142],[1436832000000,0.00144],[1436918400000,0.00143],[1437004800000,0.00144],[1437091200000,0.00144],[1437177600000,0.00145],[1437264000000,0.00145],[1437350400000,0.00145],[1437436800000,0.00145],[1437523200000,0.00145],[1437609600000,0.00145],[1437696000000,0.00146],[1437782400000,0.00146],[1437868800000,0.00146],[1437955200000,0.00146],[1438041600000,0.00146],[1438128000000,0.00145],[1438214400000,0.00145],[1438300800000,0.00142]], 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.001370],[1435708800000, 0.001370],[1435795200000, 0.001370],[1435881600000, 0.001360],[1435968000000, 0.001370],[1436054400000, 0.001370],[1436140800000, 0.001370],[1436227200000, 0.001380],[1436313600000, 0.001410],[1436400000000, 0.001420],[1436486400000, 0.001410],[1436572800000, 0.001420],[1436659200000, 0.001420],[1436745600000, 0.001420],[1436832000000, 0.001440],[1436918400000, 0.001430],[1437004800000, 0.001440],[1437091200000, 0.001440],[1437177600000, 0.001450],[1437264000000, 0.001450],[1437350400000, 0.001450],[1437436800000, 0.001450],[1437523200000, 0.001450],[1437609600000, 0.001450],[1437696000000, 0.001460],[1437782400000, 0.001460],[1437868800000, 0.001460],[1437955200000, 0.001460],[1438041600000, 0.001460],[1438128000000, 0.001450],[1438214400000, 0.001450],[1438300800000, 0.001420]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });