$(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: 'Курс USD, грн'}, 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: 'Курс USD', data: [[1275350400000,7.9251],[1275436800000,7.9251],[1275523200000,7.9256],[1275609600000,7.9253],[1275696000000,7.9213],[1275782400000,7.9213],[1275868800000,7.9213],[1275955200000,7.921],[1276041600000,7.9194],[1276128000000,7.9181],[1276214400000,7.9169],[1276300800000,7.9158],[1276387200000,7.9158],[1276473600000,7.9158],[1276560000000,7.9149],[1276646400000,7.9142],[1276732800000,7.9129],[1276819200000,7.9124],[1276905600000,7.9119],[1276992000000,7.9119],[1277078400000,7.9119],[1277164800000,7.9107],[1277251200000,7.9104],[1277337600000,7.9098],[1277424000000,7.9094],[1277510400000,7.9074],[1277596800000,7.9074],[1277683200000,7.9074],[1277769600000,7.9074],[1277856000000,7.907]], 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: [[1275350400000, 7.925100],[1275350400000, 7.925100],[1275436800000, 7.925100],[1275523200000, 7.925600],[1275609600000, 7.925300],[1275696000000, 7.921300],[1275782400000, 7.921300],[1275868800000, 7.921300],[1275955200000, 7.921000],[1276041600000, 7.919400],[1276128000000, 7.918100],[1276214400000, 7.916900],[1276300800000, 7.915800],[1276387200000, 7.915800],[1276473600000, 7.915800],[1276560000000, 7.914900],[1276646400000, 7.914200],[1276732800000, 7.912900],[1276819200000, 7.912400],[1276905600000, 7.911900],[1276992000000, 7.911900],[1277078400000, 7.911900],[1277164800000, 7.910700],[1277251200000, 7.910400],[1277337600000, 7.909800],[1277424000000, 7.909400],[1277510400000, 7.907400],[1277596800000, 7.907400],[1277683200000, 7.907400],[1277769600000, 7.907400],[1277856000000, 7.907000]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });