$(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: 'Курс HUF, грн'}, 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: 'Курс HUF', data: [[1125532800000,0.0251963],[1125619200000,0.0256538],[1125705600000,0.0259717],[1125792000000,0.0259717],[1125878400000,0.0259717],[1125964800000,0.0259762],[1126051200000,0.0258516],[1126137600000,0.0257526],[1126224000000,0.0256612],[1126310400000,0.0256582],[1126396800000,0.0256582],[1126483200000,0.0256582],[1126569600000,null],[1126656000000,null],[1126742400000,0.0253385],[1126828800000,null],[1126915200000,null],[1127001600000,0.0252027],[1127088000000,0.0252027],[1127174400000,0.0249469],[1127260800000,0.0249777],[1127347200000,0.0250665],[1127433600000,0.024958],[1127520000000,0.0246678],[1127606400000,0.0246678],[1127692800000,0.0246678],[1127779200000,0.0246028],[1127865600000,0.0245198],[1127952000000,0.0244802],[1128038400000,0.0244897]], 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, 0.025196],[1125532800000, 0.025196],[1125619200000, 0.025654],[1125705600000, 0.025972],[1125792000000, 0.025972],[1125878400000, 0.025972],[1125964800000, 0.025976],[1126051200000, 0.025852],[1126137600000, 0.025753],[1126224000000, 0.025661],[1126310400000, 0.025658],[1126396800000, 0.025658],[1126483200000, 0.025658],[1126742400000, 0.025338],[1127001600000, 0.025203],[1127088000000, 0.025203],[1127174400000, 0.024947],[1127260800000, 0.024978],[1127347200000, 0.025066],[1127433600000, 0.024958],[1127520000000, 0.024668],[1127606400000, 0.024668],[1127692800000, 0.024668],[1127779200000, 0.024603],[1127865600000, 0.024520],[1127952000000, 0.024480],[1128038400000, 0.024490]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });