$(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: 'Курс EUR, грн'}, 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: 'Курс EUR', data: [[1448928000000,25.3347],[1449014400000,25.2721],[1449100800000,25.0949],[1449187200000,24.6381],[1449273600000,25.7817],[1449360000000,25.7817],[1449446400000,25.7817],[1449532800000,25.3479],[1449619200000,24.9181],[1449705600000,25.0493],[1449792000000,25.572],[1449878400000,26.1268],[1449964800000,26.1268],[1450051200000,26.1268],[1450137600000,26.1523],[1450224000000,25.773],[1450310400000,25.7136],[1450396800000,25.463],[1450483200000,25.5149],[1450569600000,25.5149],[1450656000000,25.5149],[1450742400000,25.5642],[1450828800000,25.3504],[1450915200000,25.1038],[1451001600000,25.1392],[1451088000000,25.3286],[1451174400000,25.3286],[1451260800000,25.3286],[1451347200000,26.0978],[1451433600000,26.0556],[1451520000000,26.2231]], 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, 25.334680],[1448928000000, 25.334680],[1449014400000, 25.272057],[1449100800000, 25.094939],[1449187200000, 24.638066],[1449273600000, 25.781730],[1449360000000, 25.781730],[1449446400000, 25.781730],[1449532800000, 25.347859],[1449619200000, 24.918091],[1449705600000, 25.049330],[1449792000000, 25.571951],[1449878400000, 26.126803],[1449964800000, 26.126803],[1450051200000, 26.126803],[1450137600000, 26.152302],[1450224000000, 25.772984],[1450310400000, 25.713624],[1450396800000, 25.462988],[1450483200000, 25.514894],[1450569600000, 25.514894],[1450656000000, 25.514894],[1450742400000, 25.564231],[1450828800000, 25.350420],[1450915200000, 25.103841],[1451001600000, 25.139218],[1451088000000, 25.328606],[1451174400000, 25.328606],[1451260800000, 25.328606],[1451347200000, 26.097762],[1451433600000, 26.055598],[1451520000000, 26.223129]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });