$(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: [[1059696000000,5.95509],[1059782400000,5.95509],[1059868800000,5.95509],[1059955200000,6.02867],[1060041600000,6.02867],[1060128000000,6.04253],[1060214400000,6.07399],[1060300800000,6.05319],[1060387200000,6.0388],[1060473600000,6.0388],[1060560000000,6.02227],[1060646400000,6.03133],[1060732800000,6.01256],[1060819200000,6.01256],[1060905600000,5.99656],[1060992000000,5.99656],[1061078400000,5.99656],[1061164800000,5.96511],[1061251200000,5.96511],[1061337600000,5.89953],[1061424000000,5.86967],[1061510400000,5.80814],[1061596800000,5.80814],[1061683200000,5.80814],[1061769600000,5.80814],[1061856000000,5.76655],[1061942400000,5.81507],[1062028800000,5.77295],[1062115200000,5.82573],[1062201600000,5.82573],[1062288000000,5.82573]], 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: [[1059696000000, 5.955090],[1059696000000, 5.955090],[1059782400000, 5.955090],[1059868800000, 5.955090],[1059955200000, 6.028670],[1060041600000, 6.028670],[1060128000000, 6.042530],[1060214400000, 6.073990],[1060300800000, 6.053190],[1060387200000, 6.038800],[1060473600000, 6.038800],[1060560000000, 6.022270],[1060646400000, 6.031330],[1060732800000, 6.012560],[1060819200000, 6.012560],[1060905600000, 5.996560],[1060992000000, 5.996560],[1061078400000, 5.996560],[1061164800000, 5.965110],[1061251200000, 5.965110],[1061337600000, 5.899530],[1061424000000, 5.869670],[1061510400000, 5.808140],[1061596800000, 5.808140],[1061683200000, 5.808140],[1061769600000, 5.808140],[1061856000000, 5.766550],[1061942400000, 5.815070],[1062028800000, 5.772950],[1062115200000, 5.825730],[1062201600000, 5.825730],[1062288000000, 5.825730]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });