$(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: [[1396310400000,16.999],[1396396800000,17.1618],[1396483200000,17.364],[1396569600000,17.3157],[1396656000000,17.8987],[1396742400000,17.8987],[1396828800000,17.8987],[1396915200000,17.9447],[1397001600000,18.0814],[1397088000000,18.3606],[1397174400000,19.537],[1397260800000,19.5081],[1397347200000,19.5081],[1397433600000,19.5081],[1397520000000,20.1487],[1397606400000,19.1929],[1397692800000,17.6416],[1397779200000,17.4411],[1397865600000,17.4152],[1397952000000,17.4152],[1398038400000,17.4152],[1398124800000,17.4152],[1398211200000,17.4063],[1398297600000,17.8345],[1398384000000,17.6517],[1398470400000,17.6328],[1398556800000,17.6328],[1398643200000,17.6328],[1398729600000,17.609],[1398816000000,17.7034]], 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: [[1396310400000, 16.998977],[1396310400000, 16.998977],[1396396800000, 17.161789],[1396483200000, 17.363985],[1396569600000, 17.315665],[1396656000000, 17.898709],[1396742400000, 17.898709],[1396828800000, 17.898709],[1396915200000, 17.944693],[1397001600000, 18.081444],[1397088000000, 18.360583],[1397174400000, 19.537038],[1397260800000, 19.508124],[1397347200000, 19.508124],[1397433600000, 19.508124],[1397520000000, 20.148665],[1397606400000, 19.192868],[1397692800000, 17.641611],[1397779200000, 17.441080],[1397865600000, 17.415231],[1397952000000, 17.415231],[1398038400000, 17.415231],[1398124800000, 17.415231],[1398211200000, 17.406337],[1398297600000, 17.834532],[1398384000000, 17.651695],[1398470400000, 17.632791],[1398556800000, 17.632791],[1398643200000, 17.632791],[1398729600000, 17.609034],[1398816000000, 17.703428]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });