$(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: 'Курс XDR, грн'}, 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: 'Курс XDR', data: [[1448928000000,32.8607],[1449014400000,32.7565],[1449100800000,32.4767],[1449187200000,31.629],[1449273600000,32.794],[1449360000000,32.794],[1449446400000,32.794],[1449532800000,32.418],[1449619200000,31.7145],[1449705600000,31.7794],[1449792000000,32.5133],[1449878400000,33.2131],[1449964800000,33.2131],[1450051200000,33.2131],[1450137600000,33.1515],[1450224000000,32.6872],[1450310400000,32.6487],[1450396800000,32.4823],[1450483200000,32.5789],[1450569600000,32.5789],[1450656000000,32.5789],[1450742400000,32.5645],[1450828800000,32.1263],[1450915200000,31.9147],[1451001600000,31.9023],[1451088000000,32.1427],[1451174400000,32.1427],[1451260800000,32.1427],[1451347200000,33.0734],[1451433600000,33.0465],[1451520000000,33.2855]], 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: [[1448928000000, 32.860740],[1448928000000, 32.860740],[1449014400000, 32.756464],[1449100800000, 32.476680],[1449187200000, 31.629023],[1449273600000, 32.793979],[1449360000000, 32.793979],[1449446400000, 32.793979],[1449532800000, 32.418049],[1449619200000, 31.714456],[1449705600000, 31.779385],[1449792000000, 32.513349],[1449878400000, 33.213103],[1449964800000, 33.213103],[1450051200000, 33.213103],[1450137600000, 33.151534],[1450224000000, 32.687160],[1450310400000, 32.648702],[1450396800000, 32.482322],[1450483200000, 32.578874],[1450569600000, 32.578874],[1450656000000, 32.578874],[1450742400000, 32.564462],[1450828800000, 32.126303],[1450915200000, 31.914748],[1451001600000, 31.902336],[1451088000000, 32.142674],[1451174400000, 32.142674],[1451260800000, 32.142674],[1451347200000, 33.073435],[1451433600000, 33.046523],[1451520000000, 33.285487]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });