$(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: [[1222819200000,4.8613],[1222905600000,4.8615],[1222992000000,4.8697],[1223078400000,4.8695],[1223164800000,4.8695],[1223251200000,4.8695],[1223337600000,4.8695],[1223424000000,4.891],[1223510400000,4.9265],[1223596800000,4.9271],[1223683200000,4.9201],[1223769600000,4.9201],[1223856000000,4.9201],[1223942400000,4.9201],[1224028800000,4.92],[1224115200000,4.9216],[1224201600000,4.9638],[1224288000000,4.9631],[1224374400000,4.9631],[1224460800000,4.9631],[1224547200000,4.9855],[1224633600000,5.01],[1224720000000,5.09],[1224806400000,5.15],[1224892800000,5.22],[1224979200000,5.22],[1225065600000,5.22],[1225152000000,5.35],[1225238400000,5.5],[1225324800000,5.7604],[1225411200000,5.7604]], 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, 4.861300],[1222819200000, 4.861300],[1222905600000, 4.861500],[1222992000000, 4.869700],[1223078400000, 4.869500],[1223164800000, 4.869500],[1223251200000, 4.869500],[1223337600000, 4.869500],[1223424000000, 4.891000],[1223510400000, 4.926500],[1223596800000, 4.927100],[1223683200000, 4.920100],[1223769600000, 4.920100],[1223856000000, 4.920100],[1223942400000, 4.920100],[1224028800000, 4.920000],[1224115200000, 4.921600],[1224201600000, 4.963800],[1224288000000, 4.963100],[1224374400000, 4.963100],[1224460800000, 4.963100],[1224547200000, 4.985500],[1224633600000, 5.010000],[1224720000000, 5.090000],[1224806400000, 5.150000],[1224892800000, 5.220000],[1224979200000, 5.220000],[1225065600000, 5.220000],[1225152000000, 5.350000],[1225238400000, 5.500000],[1225324800000, 5.760400],[1225411200000, 5.760400]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });