$(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: 'Курс PLN, грн'}, 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: 'Курс PLN', data: [[1417392000000,4.46951],[1417478400000,4.4922],[1417564800000,4.5081],[1417651200000,4.53122],[1417737600000,4.53443],[1417824000000,4.56049],[1417910400000,4.56049],[1417996800000,4.56049],[1418083200000,4.61057],[1418169600000,4.58891],[1418256000000,4.65213],[1418342400000,4.66641],[1418428800000,4.67134],[1418515200000,4.67134],[1418601600000,4.67134],[1418688000000,4.70149],[1418774400000,4.69117],[1418860800000,4.70317],[1418947200000,null],[1419033600000,4.56666],[1419120000000,4.56666],[1419206400000,4.56666],[1419292800000,4.55511],[1419379200000,4.5001],[1419465600000,4.50373],[1419552000000,4.47338],[1419638400000,4.47281],[1419724800000,4.47281],[1419811200000,4.47281],[1419897600000,4.47038],[1419984000000,4.47038]], 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, 4.469508],[1417392000000, 4.469508],[1417478400000, 4.492201],[1417564800000, 4.508096],[1417651200000, 4.531215],[1417737600000, 4.534427],[1417824000000, 4.560489],[1417910400000, 4.560489],[1417996800000, 4.560489],[1418083200000, 4.610570],[1418169600000, 4.588912],[1418256000000, 4.652126],[1418342400000, 4.666407],[1418428800000, 4.671338],[1418515200000, 4.671338],[1418601600000, 4.671338],[1418688000000, 4.701492],[1418774400000, 4.691172],[1418860800000, 4.703173],[1419033600000, 4.566657],[1419120000000, 4.566657],[1419206400000, 4.566657],[1419292800000, 4.555106],[1419379200000, 4.500104],[1419465600000, 4.503729],[1419552000000, 4.473380],[1419638400000, 4.472811],[1419724800000, 4.472811],[1419811200000, 4.472811],[1419897600000, 4.470378],[1419984000000, 4.470378]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });