$(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: [[1396310400000,15.1642],[1396396800000,15.3155],[1396483200000,15.5078],[1396569600000,15.4555],[1396656000000,15.9759],[1396742400000,15.9759],[1396828800000,15.9759],[1396915200000,15.9618],[1397001600000,16.0946],[1397088000000,16.3613],[1397174400000,17.4051],[1397260800000,17.4296],[1397347200000,17.4296],[1397433600000,17.4296],[1397520000000,18.0018],[1397606400000,17.1255],[1397692800000,15.7301],[1397779200000,15.5729],[1397865600000,15.5555],[1397952000000,15.5555],[1398038400000,15.5555],[1398124800000,15.5555],[1398211200000,15.5833],[1398297600000,15.9073],[1398384000000,15.7495],[1398470400000,15.7316],[1398556800000,15.7316],[1398643200000,15.7316],[1398729600000,15.7082],[1398816000000,15.8128]], 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: [[1396310400000, 15.164180],[1396310400000, 15.164180],[1396396800000, 15.315450],[1396483200000, 15.507787],[1396569600000, 15.455469],[1396656000000, 15.975878],[1396742400000, 15.975878],[1396828800000, 15.975878],[1396915200000, 15.961828],[1397001600000, 16.094564],[1397088000000, 16.361330],[1397174400000, 17.405129],[1397260800000, 17.429603],[1397347200000, 17.429603],[1397433600000, 17.429603],[1397520000000, 18.001819],[1397606400000, 17.125515],[1397692800000, 15.730051],[1397779200000, 15.572876],[1397865600000, 15.555525],[1397952000000, 15.555525],[1398038400000, 15.555525],[1398124800000, 15.555525],[1398211200000, 15.583346],[1398297600000, 15.907305],[1398384000000, 15.749507],[1398470400000, 15.731584],[1398556800000, 15.731584],[1398643200000, 15.731584],[1398729600000, 15.708207],[1398816000000, 15.812752]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });