$(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: [[1033430400000,5.25542],[1033516800000,5.25542],[1033603200000,5.27088],[1033689600000,5.25755],[1033776000000,5.25755],[1033862400000,5.25755],[1033948800000,5.22717],[1034035200000,5.22291],[1034121600000,5.22291],[1034208000000,5.26288],[1034294400000,5.25329],[1034380800000,5.25329],[1034467200000,5.25329],[1034553600000,5.26182],[1034640000000,5.22824],[1034726400000,5.23517],[1034812800000,5.20319],[1034899200000,5.18827],[1034985600000,5.18827],[1035072000000,5.18827],[1035158400000,5.1952],[1035244800000,5.20586],[1035331200000,5.20978],[1035417600000,5.19016],[1035504000000,5.20348],[1035590400000,5.20348],[1035676800000,5.20348],[1035763200000,5.19428],[1035849600000,5.19428],[1035936000000,5.23692],[1036022400000,5.23692]], 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: [[1033430400000, 5.255420],[1033430400000, 5.255420],[1033516800000, 5.255420],[1033603200000, 5.270880],[1033689600000, 5.257550],[1033776000000, 5.257550],[1033862400000, 5.257550],[1033948800000, 5.227170],[1034035200000, 5.222910],[1034121600000, 5.222910],[1034208000000, 5.262880],[1034294400000, 5.253290],[1034380800000, 5.253290],[1034467200000, 5.253290],[1034553600000, 5.261820],[1034640000000, 5.228240],[1034726400000, 5.235170],[1034812800000, 5.203190],[1034899200000, 5.188270],[1034985600000, 5.188270],[1035072000000, 5.188270],[1035158400000, 5.195200],[1035244800000, 5.205860],[1035331200000, 5.209780],[1035417600000, 5.190160],[1035504000000, 5.203480],[1035590400000, 5.203480],[1035676800000, 5.203480],[1035763200000, 5.194280],[1035849600000, 5.194280],[1035936000000, 5.236920],[1036022400000, 5.236920]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });