$(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: 'Курс EUR, грн'}, 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: 'Курс EUR', data: [[1417392000000,18.6816],[1417478400000,18.7949],[1417564800000,18.8357],[1417651200000,18.8666],[1417737600000,18.8623],[1417824000000,18.978],[1417910400000,18.978],[1417996800000,18.978],[1418083200000,19.1929],[1418169600000,19.0949],[1418256000000,19.3538],[1418342400000,19.4211],[1418428800000,19.5253],[1418515200000,19.5253],[1418601600000,19.5253],[1418688000000,19.6217],[1418774400000,19.6007],[1418860800000,19.782],[1418947200000,null],[1419033600000,19.3727],[1419120000000,19.3727],[1419206400000,19.3727],[1419292800000,19.4676],[1419379200000,19.1997],[1419465600000,19.2602],[1419552000000,19.2704],[1419638400000,19.268],[1419724800000,19.268],[1419811200000,19.268],[1419897600000,19.2329],[1419984000000,19.2329]], 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, 18.681648],[1417392000000, 18.681648],[1417478400000, 18.794920],[1417564800000, 18.835725],[1417651200000, 18.866618],[1417737600000, 18.862308],[1417824000000, 18.978021],[1417910400000, 18.978021],[1417996800000, 18.978021],[1418083200000, 19.192883],[1418169600000, 19.094920],[1418256000000, 19.353773],[1418342400000, 19.421120],[1418428800000, 19.525259],[1418515200000, 19.525259],[1418601600000, 19.525259],[1418688000000, 19.621676],[1418774400000, 19.600654],[1418860800000, 19.782016],[1419033600000, 19.372671],[1419120000000, 19.372671],[1419206400000, 19.372671],[1419292800000, 19.467613],[1419379200000, 19.199694],[1419465600000, 19.260195],[1419552000000, 19.270426],[1419638400000, 19.267976],[1419724800000, 19.267976],[1419811200000, 19.267976],[1419897600000, 19.232908],[1419984000000, 19.232908]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });