$(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: [[1241136000000,6.78465],[1241222400000,6.78465],[1241308800000,null],[1241395200000,6.78465],[1241481600000,6.78465],[1241568000000,6.82876],[1241654400000,6.79829],[1241740800000,6.79834],[1241827200000,6.80373],[1241913600000,6.80373],[1242000000000,6.80373],[1242086400000,6.80373],[1242172800000,6.94262],[1242259200000,6.90036],[1242345600000,6.8689],[1242432000000,6.85852],[1242518400000,6.85852],[1242604800000,6.85852],[1242691200000,6.80405],[1242777600000,6.84896],[1242864000000,6.89397],[1242950400000,6.91191],[1243036800000,6.99289],[1243123200000,6.99289],[1243209600000,6.99289],[1243296000000,7.02974],[1243382400000,6.99716],[1243468800000,6.9978],[1243555200000,6.98327],[1243641600000,7.09979],[1243728000000,7.09979]], 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, 6.784648],[1241136000000, 6.784648],[1241222400000, 6.784648],[1241395200000, 6.784648],[1241481600000, 6.784648],[1241568000000, 6.828763],[1241654400000, 6.798290],[1241740800000, 6.798336],[1241827200000, 6.803732],[1241913600000, 6.803732],[1242000000000, 6.803732],[1242086400000, 6.803732],[1242172800000, 6.942617],[1242259200000, 6.900365],[1242345600000, 6.868899],[1242432000000, 6.858520],[1242518400000, 6.858520],[1242604800000, 6.858520],[1242691200000, 6.804047],[1242777600000, 6.848959],[1242864000000, 6.893970],[1242950400000, 6.911909],[1243036800000, 6.992886],[1243123200000, 6.992886],[1243209600000, 6.992886],[1243296000000, 7.029738],[1243382400000, 6.997164],[1243468800000, 6.997801],[1243555200000, 6.983270],[1243641600000, 7.099789],[1243728000000, 7.099789]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });