$(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: [[1417392000000,0.00139],[1417478400000,0.00139],[1417564800000,0.0014],[1417651200000,0.0014],[1417737600000,0.00141],[1417824000000,0.00142],[1417910400000,0.00142],[1417996800000,0.00142],[1418083200000,0.00143],[1418169600000,0.00144],[1418256000000,0.00144],[1418342400000,0.00144],[1418428800000,0.00145],[1418515200000,0.00145],[1418601600000,0.00145],[1418688000000,0.00145],[1418774400000,0.00145],[1418860800000,0.00145],[1418947200000,null],[1419033600000,0.00145],[1419120000000,0.00145],[1419206400000,0.00145],[1419292800000,0.00145],[1419379200000,0.00143],[1419465600000,0.00144],[1419552000000,0.00143],[1419638400000,0.00143],[1419724800000,0.00143],[1419811200000,0.00143],[1419897600000,0.00143],[1419984000000,0.00143]], 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: [[1417392000000, 0.001390],[1417392000000, 0.001390],[1417478400000, 0.001390],[1417564800000, 0.001400],[1417651200000, 0.001400],[1417737600000, 0.001410],[1417824000000, 0.001420],[1417910400000, 0.001420],[1417996800000, 0.001420],[1418083200000, 0.001430],[1418169600000, 0.001440],[1418256000000, 0.001440],[1418342400000, 0.001440],[1418428800000, 0.001450],[1418515200000, 0.001450],[1418601600000, 0.001450],[1418688000000, 0.001450],[1418774400000, 0.001450],[1418860800000, 0.001450],[1419033600000, 0.001450],[1419120000000, 0.001450],[1419206400000, 0.001450],[1419292800000, 0.001450],[1419379200000, 0.001430],[1419465600000, 0.001440],[1419552000000, 0.001430],[1419638400000, 0.001430],[1419724800000, 0.001430],[1419811200000, 0.001430],[1419897600000, 0.001430],[1419984000000, 0.001430]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });