$(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: 'Курс CAD, грн'}, 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: 'Курс CAD', data: [[1417392000000,13.307],[1417478400000,13.2107],[1417564800000,13.2525],[1417651200000,13.3569],[1417737600000,13.4404],[1417824000000,13.5577],[1417910400000,13.5577],[1417996800000,13.5577],[1418083200000,13.6265],[1418169600000,13.613],[1418256000000,13.6621],[1418342400000,13.6903],[1418428800000,13.6722],[1418515200000,13.6722],[1418601600000,13.6722],[1418688000000,13.6101],[1418774400000,13.605],[1418860800000,13.5382],[1418947200000,null],[1419033600000,13.5968],[1419120000000,13.5968],[1419206400000,13.5968],[1419292800000,13.672],[1419379200000,13.4669],[1419465600000,13.5511],[1419552000000,13.6052],[1419638400000,13.6035],[1419724800000,13.6035],[1419811200000,13.6035],[1419897600000,13.5605],[1419984000000,13.5605]], 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, 13.306965],[1417392000000, 13.306965],[1417478400000, 13.210740],[1417564800000, 13.252463],[1417651200000, 13.356898],[1417737600000, 13.440436],[1417824000000, 13.557666],[1417910400000, 13.557666],[1417996800000, 13.557666],[1418083200000, 13.626470],[1418169600000, 13.612975],[1418256000000, 13.662130],[1418342400000, 13.690343],[1418428800000, 13.672193],[1418515200000, 13.672193],[1418601600000, 13.672193],[1418688000000, 13.610096],[1418774400000, 13.604952],[1418860800000, 13.538199],[1419033600000, 13.596765],[1419120000000, 13.596765],[1419206400000, 13.596765],[1419292800000, 13.672037],[1419379200000, 13.466854],[1419465600000, 13.551112],[1419552000000, 13.605215],[1419638400000, 13.603485],[1419724800000, 13.603485],[1419811200000, 13.603485],[1419897600000, 13.560536],[1419984000000, 13.560536]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });