$(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: [[1125532800000,3.97804],[1125619200000,4.04575],[1125705600000,4.10261],[1125792000000,4.10261],[1125878400000,4.10261],[1125964800000,4.10376],[1126051200000,4.0839],[1126137600000,4.07475],[1126224000000,4.06422],[1126310400000,4.06192],[1126396800000,4.06192],[1126483200000,4.06192],[1126569600000,null],[1126656000000,null],[1126742400000,4.02002],[1126828800000,null],[1126915200000,null],[1127001600000,3.98628],[1127088000000,3.98628],[1127174400000,3.95216],[1127260800000,3.95373],[1127347200000,3.97811],[1127433600000,3.97394],[1127520000000,3.93366],[1127606400000,3.93366],[1127692800000,3.93366],[1127779200000,3.90316],[1127865600000,3.89172],[1127952000000,3.90761],[1128038400000,3.91052]], 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: [[1125532800000, 3.978037],[1125532800000, 3.978037],[1125619200000, 4.045748],[1125705600000, 4.102614],[1125792000000, 4.102614],[1125878400000, 4.102614],[1125964800000, 4.103759],[1126051200000, 4.083905],[1126137600000, 4.074755],[1126224000000, 4.064219],[1126310400000, 4.061921],[1126396800000, 4.061921],[1126483200000, 4.061921],[1126742400000, 4.020021],[1127001600000, 3.986277],[1127088000000, 3.986277],[1127174400000, 3.952160],[1127260800000, 3.953730],[1127347200000, 3.978107],[1127433600000, 3.973941],[1127520000000, 3.933657],[1127606400000, 3.933657],[1127692800000, 3.933657],[1127779200000, 3.903158],[1127865600000, 3.891722],[1127952000000, 3.907614],[1128038400000, 3.910524]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });