$(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: 'Курс HUF, грн'}, 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: 'Курс HUF', data: [[1222819200000,0.0286337],[1222905600000,0.0283281],[1222992000000,0.027761],[1223078400000,0.0273729],[1223164800000,0.0273729],[1223251200000,0.0273729],[1223337600000,0.0266758],[1223424000000,0.0267628],[1223510400000,0.0268489],[1223596800000,0.0266474],[1223683200000,0.0255928],[1223769600000,0.0255928],[1223856000000,0.0255928],[1223942400000,0.0265238],[1224028800000,0.0270639],[1224115200000,0.0254969],[1224201600000,0.0252053],[1224288000000,0.0247767],[1224374400000,0.0247767],[1224460800000,0.0247767],[1224547200000,0.024947],[1224633600000,0.0240381],[1224720000000,0.0237238],[1224806400000,0.0232294],[1224892800000,0.0237369],[1224979200000,0.0237369],[1225065600000,0.0237369],[1225152000000,0.0245954],[1225238400000,0.026295],[1225324800000,0.0287289],[1225411200000,0.0291894]], 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, 0.028634],[1222819200000, 0.028634],[1222905600000, 0.028328],[1222992000000, 0.027761],[1223078400000, 0.027373],[1223164800000, 0.027373],[1223251200000, 0.027373],[1223337600000, 0.026676],[1223424000000, 0.026763],[1223510400000, 0.026849],[1223596800000, 0.026647],[1223683200000, 0.025593],[1223769600000, 0.025593],[1223856000000, 0.025593],[1223942400000, 0.026524],[1224028800000, 0.027064],[1224115200000, 0.025497],[1224201600000, 0.025205],[1224288000000, 0.024777],[1224374400000, 0.024777],[1224460800000, 0.024777],[1224547200000, 0.024947],[1224633600000, 0.024038],[1224720000000, 0.023724],[1224806400000, 0.023229],[1224892800000, 0.023737],[1224979200000, 0.023737],[1225065600000, 0.023737],[1225152000000, 0.024595],[1225238400000, 0.026295],[1225324800000, 0.028729],[1225411200000, 0.029189]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });