$(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: [[1427846400000,25.2313],[1427932800000,25.2548],[1428019200000,25.4608],[1428105600000,25.2391],[1428192000000,25.2391],[1428278400000,25.2391],[1428364800000,25.3937],[1428451200000,25.497],[1428537600000,25.5369],[1428624000000,25.2493],[1428710400000,24.1863],[1428796800000,24.1863],[1428883200000,24.1863],[1428969600000,24.1863],[1429056000000,24.2196],[1429142400000,23.0443],[1429228800000,22.9707],[1429315200000,22.7717],[1429401600000,22.7717],[1429488000000,22.7717],[1429574400000,23.8634],[1429660800000,23.8355],[1429747200000,24.2171],[1429833600000,24.2705],[1429920000000,24.3016],[1430006400000,24.3016],[1430092800000,24.3016],[1430179200000,24.7808],[1430265600000,24.3261],[1430352000000,23.1557]], 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: [[1427846400000, 25.231343],[1427846400000, 25.231343],[1427932800000, 25.254831],[1428019200000, 25.460780],[1428105600000, 25.239097],[1428192000000, 25.239097],[1428278400000, 25.239097],[1428364800000, 25.393659],[1428451200000, 25.496994],[1428537600000, 25.536926],[1428624000000, 25.249267],[1428710400000, 24.186309],[1428796800000, 24.186309],[1428883200000, 24.186309],[1428969600000, 24.186309],[1429056000000, 24.219608],[1429142400000, 23.044264],[1429228800000, 22.970656],[1429315200000, 22.771747],[1429401600000, 22.771747],[1429488000000, 22.771747],[1429574400000, 23.863379],[1429660800000, 23.835512],[1429747200000, 24.217078],[1429833600000, 24.270461],[1429920000000, 24.301644],[1430006400000, 24.301644],[1430092800000, 24.301644],[1430179200000, 24.780827],[1430265600000, 24.326131],[1430352000000, 23.155725]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });