$(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: 'Курс GBP, грн'}, 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: 'Курс GBP', data: [[1222819200000,8.79807],[1222905600000,8.64437],[1222992000000,8.60054],[1223078400000,8.59737],[1223164800000,8.59737],[1223251200000,8.59737],[1223337600000,8.59094],[1223424000000,8.57821],[1223510400000,8.66254],[1223596800000,8.53864],[1223683200000,8.37218],[1223769600000,8.37218],[1223856000000,8.37218],[1223942400000,8.54409],[1224028800000,8.66268],[1224115200000,8.63967],[1224201600000,8.56654],[1224288000000,8.58281],[1224374400000,8.58281],[1224460800000,8.58281],[1224547200000,8.67302],[1224633600000,8.50088],[1224720000000,8.29422],[1224806400000,8.33289],[1224892800000,8.15669],[1224979200000,8.15669],[1225065600000,8.15669],[1225152000000,8.26752],[1225238400000,8.63429],[1225324800000,9.24357],[1225411200000,9.49625]], 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, 8.798073],[1222819200000, 8.798073],[1222905600000, 8.644372],[1222992000000, 8.600539],[1223078400000, 8.597366],[1223164800000, 8.597366],[1223251200000, 8.597366],[1223337600000, 8.590937],[1223424000000, 8.578207],[1223510400000, 8.662540],[1223596800000, 8.538642],[1223683200000, 8.372185],[1223769600000, 8.372185],[1223856000000, 8.372185],[1223942400000, 8.544085],[1224028800000, 8.662677],[1224115200000, 8.639670],[1224201600000, 8.566543],[1224288000000, 8.582814],[1224374400000, 8.582814],[1224460800000, 8.582814],[1224547200000, 8.673019],[1224633600000, 8.500880],[1224720000000, 8.294217],[1224806400000, 8.332891],[1224892800000, 8.156695],[1224979200000, 8.156695],[1225065600000, 8.156695],[1225152000000, 8.267518],[1225238400000, 8.634290],[1225324800000, 9.243567],[1225411200000, 9.496246]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });