$(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: [[1372636800000,14.8362],[1372723200000,14.8398],[1372809600000,14.8275],[1372896000000,14.7552],[1372982400000,14.7857],[1373068800000,14.6707],[1373155200000,14.6707],[1373241600000,14.6707],[1373328000000,14.629],[1373414400000,14.6286],[1373500800000,14.5848],[1373587200000,14.8393],[1373673600000,14.8258],[1373760000000,14.8258],[1373846400000,14.8258],[1373932800000,14.8029],[1374019200000,14.9256],[1374105600000,14.9461],[1374192000000,14.8993],[1374278400000,14.9313],[1374364800000,14.9313],[1374451200000,null],[1374537600000,14.9802],[1374624000000,15.0025],[1374710400000,15.0712],[1374796800000,15.0212],[1374883200000,15.0871],[1374969600000,15.0871],[1375056000000,15.0871],[1375142400000,15.1007],[1375228800000,15.1101]], 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: [[1372636800000, 14.836174],[1372636800000, 14.836174],[1372723200000, 14.839752],[1372809600000, 14.827545],[1372896000000, 14.755169],[1372982400000, 14.785740],[1373068800000, 14.670725],[1373155200000, 14.670725],[1373241600000, 14.670725],[1373328000000, 14.628977],[1373414400000, 14.628612],[1373500800000, 14.584778],[1373587200000, 14.839267],[1373673600000, 14.825781],[1373760000000, 14.825781],[1373846400000, 14.825781],[1373932800000, 14.802863],[1374019200000, 14.925576],[1374105600000, 14.946057],[1374192000000, 14.899252],[1374278400000, 14.931265],[1374364800000, 14.931265],[1374537600000, 14.980190],[1374624000000, 15.002526],[1374710400000, 15.071214],[1374796800000, 15.021151],[1374883200000, 15.087143],[1374969600000, 15.087143],[1375056000000, 15.087143],[1375142400000, 15.100671],[1375228800000, 15.110148]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });