$(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: [[1241136000000,2.32349],[1241222400000,2.32349],[1241308800000,null],[1241395200000,2.32349],[1241481600000,2.32349],[1241568000000,2.37341],[1241654400000,2.32422],[1241740800000,2.39564],[1241827200000,2.36778],[1241913600000,2.36778],[1242000000000,2.36778],[1242086400000,2.36778],[1242172800000,2.38829],[1242259200000,2.35455],[1242345600000,2.30412],[1242432000000,2.30016],[1242518400000,2.30016],[1242604800000,2.30016],[1242691200000,2.30177],[1242777600000,2.36999],[1242864000000,2.38662],[1242950400000,2.38584],[1243036800000,2.42709],[1243123200000,2.42709],[1243209600000,2.42709],[1243296000000,2.41725],[1243382400000,2.3955],[1243468800000,2.38739],[1243555200000,2.35061],[1243641600000,2.39948],[1243728000000,2.39948]], 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: [[1241136000000, 2.323495],[1241136000000, 2.323495],[1241222400000, 2.323495],[1241395200000, 2.323495],[1241481600000, 2.323495],[1241568000000, 2.373413],[1241654400000, 2.324219],[1241740800000, 2.395640],[1241827200000, 2.367780],[1241913600000, 2.367780],[1242000000000, 2.367780],[1242086400000, 2.367780],[1242172800000, 2.388286],[1242259200000, 2.354551],[1242345600000, 2.304123],[1242432000000, 2.300157],[1242518400000, 2.300157],[1242604800000, 2.300157],[1242691200000, 2.301772],[1242777600000, 2.369987],[1242864000000, 2.386623],[1242950400000, 2.385835],[1243036800000, 2.427086],[1243123200000, 2.427086],[1243209600000, 2.427086],[1243296000000, 2.417249],[1243382400000, 2.395502],[1243468800000, 2.387389],[1243555200000, 2.350614],[1243641600000, 2.399482],[1243728000000, 2.399482]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });