$(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: 'Курс EUR, грн'}, 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: 'Курс EUR', data: [[1222819200000,6.95312],[1222905600000,6.84548],[1222992000000,6.77034],[1223078400000,6.73647],[1223164800000,6.73647],[1223251200000,6.73647],[1223337600000,6.63908],[1223424000000,6.66741],[1223510400000,6.76458],[1223596800000,6.74126],[1223683200000,6.681],[1223769600000,6.681],[1223856000000,6.681],[1223942400000,6.71052],[1224028800000,6.76598],[1224115200000,6.70568],[1224201600000,6.7046],[1224288000000,6.65254],[1224374400000,6.65254],[1224460800000,6.65254],[1224547200000,6.69254],[1224633600000,6.60518],[1224720000000,6.53709],[1224806400000,6.59715],[1224892800000,6.57511],[1224979200000,6.57511],[1225065600000,6.57511],[1225152000000,6.6661],[1225238400000,6.8893],[1225324800000,7.35603],[1225411200000,7.50868]], 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, 6.953117],[1222819200000, 6.953117],[1222905600000, 6.845478],[1222992000000, 6.770344],[1223078400000, 6.736466],[1223164800000, 6.736466],[1223251200000, 6.736466],[1223337600000, 6.639076],[1223424000000, 6.667411],[1223510400000, 6.764577],[1223596800000, 6.741258],[1223683200000, 6.681004],[1223769600000, 6.681004],[1223856000000, 6.681004],[1223942400000, 6.710524],[1224028800000, 6.765984],[1224115200000, 6.705680],[1224201600000, 6.704605],[1224288000000, 6.652539],[1224374400000, 6.652539],[1224460800000, 6.652539],[1224547200000, 6.692535],[1224633600000, 6.605184],[1224720000000, 6.537087],[1224806400000, 6.597150],[1224892800000, 6.575112],[1224979200000, 6.575112],[1225065600000, 6.575112],[1225152000000, 6.666100],[1225238400000, 6.889300],[1225324800000, 7.356031],[1225411200000, 7.508681]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });