$(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: 'Курс RUB, грн'}, 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: 'Курс RUB', data: [[1222819200000,0.1916],[1222905600000,0.18989],[1222992000000,0.18859],[1223078400000,0.18802],[1223164800000,0.18802],[1223251200000,0.18802],[1223337600000,0.18601],[1223424000000,0.18683],[1223510400000,0.1883],[1223596800000,0.189],[1223683200000,0.18773],[1223769600000,0.18773],[1223856000000,0.18773],[1223942400000,0.18843],[1224028800000,0.1886],[1224115200000,0.18832],[1224201600000,0.18824],[1224288000000,0.18907],[1224374400000,0.18907],[1224460800000,0.18907],[1224547200000,0.19134],[1224633600000,0.18947],[1224720000000,0.18907],[1224806400000,0.19089],[1224892800000,0.19291],[1224979200000,0.19291],[1225065600000,0.19291],[1225152000000,0.19561],[1225238400000,0.20145],[1225324800000,0.21258],[1225411200000,0.21702]], 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.191600],[1222819200000, 0.191600],[1222905600000, 0.189890],[1222992000000, 0.188590],[1223078400000, 0.188020],[1223164800000, 0.188020],[1223251200000, 0.188020],[1223337600000, 0.186010],[1223424000000, 0.186830],[1223510400000, 0.188300],[1223596800000, 0.189000],[1223683200000, 0.187730],[1223769600000, 0.187730],[1223856000000, 0.187730],[1223942400000, 0.188430],[1224028800000, 0.188600],[1224115200000, 0.188320],[1224201600000, 0.188240],[1224288000000, 0.189070],[1224374400000, 0.189070],[1224460800000, 0.189070],[1224547200000, 0.191340],[1224633600000, 0.189470],[1224720000000, 0.189070],[1224806400000, 0.190890],[1224892800000, 0.192910],[1224979200000, 0.192910],[1225065600000, 0.192910],[1225152000000, 0.195610],[1225238400000, 0.201450],[1225324800000, 0.212580],[1225411200000, 0.217020]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });