$(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: [[1425168000000,31.4195],[1425254400000,31.4195],[1425340800000,30.1885],[1425427200000,27.8662],[1425513600000,26.5477],[1425600000000,25.6859],[1425686400000,25.3447],[1425772800000,25.3447],[1425859200000,25.3447],[1425945600000,25.3447],[1426032000000,23.605],[1426118400000,23.1435],[1426204800000,22.7997],[1426291200000,22.9411],[1426377600000,22.9411],[1426464000000,22.9411],[1426550400000,23.0156],[1426636800000,23.486],[1426723200000,24.7761],[1426809600000,24.779],[1426896000000,24.7606],[1426982400000,24.7606],[1427068800000,24.7606],[1427155200000,24.9463],[1427241600000,25.4117],[1427328000000,25.7949],[1427414400000,25.8156],[1427500800000,25.8008],[1427587200000,25.8008],[1427673600000,25.8008],[1427760000000,25.4493]], 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: [[1425168000000, 31.419523],[1425168000000, 31.419523],[1425254400000, 31.419523],[1425340800000, 30.188520],[1425427200000, 27.866153],[1425513600000, 26.547747],[1425600000000, 25.685943],[1425686400000, 25.344739],[1425772800000, 25.344739],[1425859200000, 25.344739],[1425945600000, 25.344739],[1426032000000, 23.604981],[1426118400000, 23.143543],[1426204800000, 22.799746],[1426291200000, 22.941123],[1426377600000, 22.941123],[1426464000000, 22.941123],[1426550400000, 23.015647],[1426636800000, 23.486016],[1426723200000, 24.776133],[1426809600000, 24.778966],[1426896000000, 24.760618],[1426982400000, 24.760618],[1427068800000, 24.760618],[1427155200000, 24.946303],[1427241600000, 25.411695],[1427328000000, 25.794938],[1427414400000, 25.815628],[1427500800000, 25.800841],[1427587200000, 25.800841],[1427673600000, 25.800841],[1427760000000, 25.449314]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });