$(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: 'Курс LVL, грн'}, 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: 'Курс LVL', data: [[1217548800000,10.7393],[1217635200000,10.7002],[1217721600000,10.7002],[1217808000000,10.7002],[1217894400000,10.6962],[1217980800000,10.6436],[1218067200000,10.6374],[1218153600000,10.6307],[1218240000000,null],[1218326400000,null],[1218412800000,10.3623],[1218499200000,10.3255],[1218585600000,10.2554],[1218672000000,10.2601],[1218758400000,10.2643],[1218844800000,10.1461],[1218931200000,10.1461],[1219017600000,10.1461],[1219104000000,10.1255],[1219190400000,10.1094],[1219276800000,10.1491],[1219363200000,10.2042],[1219449600000,10.198],[1219536000000,10.198],[1219622400000,10.198],[1219708800000,10.198],[1219795200000,10.0522],[1219881600000,10.1715],[1219968000000,10.1742],[1220054400000,10.1505],[1220140800000,10.1505]], 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: [[1217548800000, 10.739295],[1217548800000, 10.739295],[1217635200000, 10.700168],[1217721600000, 10.700168],[1217808000000, 10.700168],[1217894400000, 10.696189],[1217980800000, 10.643605],[1218067200000, 10.637420],[1218153600000, 10.630690],[1218412800000, 10.362306],[1218499200000, 10.325545],[1218585600000, 10.255389],[1218672000000, 10.260110],[1218758400000, 10.264322],[1218844800000, 10.146086],[1218931200000, 10.146086],[1219017600000, 10.146086],[1219104000000, 10.125543],[1219190400000, 10.109431],[1219276800000, 10.149111],[1219363200000, 10.204217],[1219449600000, 10.198002],[1219536000000, 10.198002],[1219622400000, 10.198002],[1219708800000, 10.198002],[1219795200000, 10.052228],[1219881600000, 10.171493],[1219968000000, 10.174248],[1220054400000, 10.150499],[1220140800000, 10.150499]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });