$(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: [[1228089600000,0.0337234],[1228176000000,0.0343426],[1228262400000,0.0351678],[1228348800000,0.0355208],[1228435200000,0.0355942],[1228521600000,0.0351319],[1228608000000,0.0351319],[1228694400000,0.0351319],[1228780800000,0.0359635],[1228867200000,0.0362305],[1228953600000,0.0366276],[1229040000000,0.0374128],[1229126400000,0.0376904],[1229212800000,0.0376904],[1229299200000,0.0376904],[1229385600000,0.0387654],[1229472000000,0.0394729],[1229558400000,0.0417171],[1229644800000,0.0428713],[1229731200000,0.0413145],[1229817600000,0.0413145],[1229904000000,0.0413145],[1229990400000,0.0413599],[1230076800000,0.0411522],[1230163200000,0.0407451],[1230249600000,0.0407451],[1230336000000,0.0402743],[1230422400000,0.0402743],[1230508800000,0.0402743],[1230595200000,0.0412087],[1230681600000,0.0407594]], 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: [[1228089600000, 0.033723],[1228089600000, 0.033723],[1228176000000, 0.034343],[1228262400000, 0.035168],[1228348800000, 0.035521],[1228435200000, 0.035594],[1228521600000, 0.035132],[1228608000000, 0.035132],[1228694400000, 0.035132],[1228780800000, 0.035964],[1228867200000, 0.036230],[1228953600000, 0.036628],[1229040000000, 0.037413],[1229126400000, 0.037690],[1229212800000, 0.037690],[1229299200000, 0.037690],[1229385600000, 0.038765],[1229472000000, 0.039473],[1229558400000, 0.041717],[1229644800000, 0.042871],[1229731200000, 0.041314],[1229817600000, 0.041314],[1229904000000, 0.041314],[1229990400000, 0.041360],[1230076800000, 0.041152],[1230163200000, 0.040745],[1230249600000, 0.040745],[1230336000000, 0.040274],[1230422400000, 0.040274],[1230508800000, 0.040274],[1230595200000, 0.041209],[1230681600000, 0.040759]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });