$(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: [[1409529600000,14.8671],[1409616000000,14.3395],[1409702400000,14.152],[1409788800000,13.6137],[1409875200000,null],[1409961600000,13.8433],[1410048000000,13.8433],[1410134400000,13.8433],[1410220800000,13.7617],[1410307200000,13.8664],[1410393600000,13.8561],[1410480000000,13.8978],[1410566400000,13.8363],[1410652800000,13.8363],[1410739200000,13.8363],[1410825600000,13.8018],[1410912000000,13.8598],[1410998400000,14.0176],[1411084800000,14.3736],[1411171200000,null],[1411257600000,14.3078],[1411344000000,14.3078],[1411430400000,null],[1411516800000,14.3958],[1411603200000,13.8269],[1411689600000,13.7538],[1411776000000,13.5887],[1411862400000,13.5887],[1411948800000,13.5887],[1412035200000,13.615]], 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: [[1409529600000, 14.867075],[1409529600000, 14.867075],[1409616000000, 14.339517],[1409702400000, 14.151974],[1409788800000, 13.613690],[1409961600000, 13.843296],[1410048000000, 13.843296],[1410134400000, 13.843296],[1410220800000, 13.761654],[1410307200000, 13.866422],[1410393600000, 13.856057],[1410480000000, 13.897816],[1410566400000, 13.836253],[1410652800000, 13.836253],[1410739200000, 13.836253],[1410825600000, 13.801805],[1410912000000, 13.859845],[1410998400000, 14.017617],[1411084800000, 14.373573],[1411257600000, 14.307807],[1411344000000, 14.307807],[1411516800000, 14.395818],[1411603200000, 13.826909],[1411689600000, 13.753750],[1411776000000, 13.588653],[1411862400000, 13.588653],[1411948800000, 13.588653],[1412035200000, 13.615019]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });