$(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: 'Курс CHF, грн'}, 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: 'Курс CHF', data: [[1417392000000,15.5396],[1417478400000,15.639],[1417564800000,15.6599],[1417651200000,15.6699],[1417737600000,15.6768],[1417824000000,15.769],[1417910400000,15.769],[1417996800000,15.769],[1418083200000,15.9661],[1418169600000,15.882],[1418256000000,16.1],[1418342400000,16.152],[1418428800000,16.2548],[1418515200000,16.2548],[1418601600000,16.2548],[1418688000000,16.3378],[1418774400000,16.3189],[1418860800000,16.4727],[1418947200000,null],[1419033600000,16.0742],[1419120000000,16.0742],[1419206400000,16.0742],[1419292800000,16.1705],[1419379200000,15.9532],[1419465600000,16.0075],[1419552000000,16.0253],[1419638400000,16.0233],[1419724800000,16.0233],[1419811200000,16.0233],[1419897600000,15.9901],[1419984000000,15.9901]], 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, 15.539551],[1417392000000, 15.539551],[1417478400000, 15.638975],[1417564800000, 15.659898],[1417651200000, 15.669949],[1417737600000, 15.676785],[1417824000000, 15.769024],[1417910400000, 15.769024],[1417996800000, 15.769024],[1418083200000, 15.966128],[1418169600000, 15.881993],[1418256000000, 16.099969],[1418342400000, 16.151963],[1418428800000, 16.254795],[1418515200000, 16.254795],[1418601600000, 16.254795],[1418688000000, 16.337782],[1418774400000, 16.318920],[1418860800000, 16.472659],[1419033600000, 16.074238],[1419120000000, 16.074238],[1419206400000, 16.074238],[1419292800000, 16.170457],[1419379200000, 15.953215],[1419465600000, 16.007476],[1419552000000, 16.025302],[1419638400000, 16.023265],[1419724800000, 16.023265],[1419811200000, 16.023265],[1419897600000, 15.990113],[1419984000000, 15.990113]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });