$(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: 'Курс USD, грн'}, 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: 'Курс USD', data: [[1475280000000,25.9369],[1475366400000,25.9369],[1475452800000,25.9369],[1475539200000,25.9206],[1475625600000,25.8644],[1475712000000,25.8983],[1475798400000,25.8889],[1475884800000,25.8409],[1475971200000,25.8409],[1476057600000,25.8409],[1476144000000,25.8272],[1476230400000,25.8517],[1476316800000,25.8074],[1476403200000,25.7908],[1476489600000,25.7908],[1476576000000,25.7908],[1476662400000,25.7908],[1476748800000,25.7832],[1476835200000,25.663],[1476921600000,25.6932],[1477008000000,25.7036],[1477094400000,25.6628],[1477180800000,25.6628],[1477267200000,25.6628],[1477353600000,25.6405],[1477440000000,25.5953],[1477526400000,25.5814],[1477612800000,25.5328],[1477699200000,25.496],[1477785600000,25.496],[1477872000000,25.496]], 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: [[1475280000000, 25.936893],[1475280000000, 25.936893],[1475366400000, 25.936893],[1475452800000, 25.936893],[1475539200000, 25.920623],[1475625600000, 25.864415],[1475712000000, 25.898334],[1475798400000, 25.888929],[1475884800000, 25.840885],[1475971200000, 25.840885],[1476057600000, 25.840885],[1476144000000, 25.827169],[1476230400000, 25.851713],[1476316800000, 25.807400],[1476403200000, 25.790790],[1476489600000, 25.790790],[1476576000000, 25.790790],[1476662400000, 25.790790],[1476748800000, 25.783191],[1476835200000, 25.663049],[1476921600000, 25.693239],[1477008000000, 25.703574],[1477094400000, 25.662802],[1477180800000, 25.662802],[1477267200000, 25.662802],[1477353600000, 25.640480],[1477440000000, 25.595314],[1477526400000, 25.581368],[1477612800000, 25.532787],[1477699200000, 25.495951],[1477785600000, 25.495951],[1477872000000, 25.495951]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });