$(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: [[1222819200000,7.57013],[1222905600000,7.51759],[1222992000000,7.47392],[1223078400000,7.47713],[1223164800000,7.47713],[1223251200000,7.47713],[1223337600000,7.42976],[1223424000000,7.46539],[1223510400000,7.54862],[1223596800000,7.55214],[1223683200000,7.50846],[1223769600000,7.50846],[1223856000000,7.50846],[1223942400000,7.50846],[1224028800000,7.54285],[1224115200000,7.54213],[1224201600000,7.55962],[1224288000000,7.54438],[1224374400000,7.54438],[1224460800000,7.54438],[1224547200000,7.58172],[1224633600000,7.56191],[1224720000000,7.6005],[1224806400000,7.6864],[1224892800000,7.7672],[1224979200000,7.7672],[1225065600000,7.7672],[1225152000000,7.9076],[1225238400000,8.15152],[1225324800000,8.58324],[1225411200000,8.66034]], 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: [[1222819200000, 7.570126],[1222819200000, 7.570126],[1222905600000, 7.517594],[1222992000000, 7.473920],[1223078400000, 7.477125],[1223164800000, 7.477125],[1223251200000, 7.477125],[1223337600000, 7.429757],[1223424000000, 7.465386],[1223510400000, 7.548618],[1223596800000, 7.552141],[1223683200000, 7.508462],[1223769600000, 7.508462],[1223856000000, 7.508462],[1223942400000, 7.508462],[1224028800000, 7.542854],[1224115200000, 7.542127],[1224201600000, 7.559624],[1224288000000, 7.544379],[1224374400000, 7.544379],[1224460800000, 7.544379],[1224547200000, 7.581725],[1224633600000, 7.561910],[1224720000000, 7.600498],[1224806400000, 7.686395],[1224892800000, 7.767198],[1224979200000, 7.767198],[1225065600000, 7.767198],[1225152000000, 7.907604],[1225238400000, 8.151517],[1225324800000, 8.583238],[1225411200000, 8.660341]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });