$(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: [[1241136000000,10.2218],[1241222400000,10.2218],[1241308800000,null],[1241395200000,10.2218],[1241481600000,10.2218],[1241568000000,10.3203],[1241654400000,10.2579],[1241740800000,10.3104],[1241827200000,10.3022],[1241913600000,10.3022],[1242000000000,10.3022],[1242086400000,10.3022],[1242172800000,10.475],[1242259200000,10.3878],[1242345600000,10.3398],[1242432000000,10.3036],[1242518400000,10.3036],[1242604800000,10.3036],[1242691200000,10.2843],[1242777600000,10.3734],[1242864000000,10.4264],[1242950400000,10.4881],[1243036800000,10.6411],[1243123200000,10.6411],[1243209600000,10.6411],[1243296000000,10.6697],[1243382400000,10.5965],[1243468800000,10.5912],[1243555200000,10.5566],[1243641600000,10.7406],[1243728000000,10.7406]], 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, 10.221750],[1241136000000, 10.221750],[1241222400000, 10.221750],[1241395200000, 10.221750],[1241481600000, 10.221750],[1241568000000, 10.320310],[1241654400000, 10.257940],[1241740800000, 10.310356],[1241827200000, 10.302211],[1241913600000, 10.302211],[1242000000000, 10.302211],[1242086400000, 10.302211],[1242172800000, 10.475021],[1242259200000, 10.387810],[1242345600000, 10.339753],[1242432000000, 10.303555],[1242518400000, 10.303555],[1242604800000, 10.303555],[1242691200000, 10.284317],[1242777600000, 10.373433],[1242864000000, 10.426441],[1242950400000, 10.488131],[1243036800000, 10.641075],[1243123200000, 10.641075],[1243209600000, 10.641075],[1243296000000, 10.669736],[1243382400000, 10.596505],[1243468800000, 10.591172],[1243555200000, 10.556609],[1243641600000, 10.740561],[1243728000000, 10.740561]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });