$(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: 'Курс PLN, грн'}, 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: 'Курс PLN', data: [[1493596800000,6.8755],[1493683200000,6.8755],[1493769600000,6.8755],[1493856000000,6.90977],[1493942400000,6.87321],[1494028800000,6.88993],[1494115200000,6.88993],[1494201600000,6.88993],[1494288000000,6.88993],[1494374400000,6.88993],[1494460800000,6.82534],[1494547200000,6.79462],[1494633600000,6.82795],[1494720000000,6.82795],[1494806400000,6.82795],[1494892800000,6.90086],[1494979200000,6.96282],[1495065600000,7.01466],[1495152000000,6.95521],[1495238400000,7.01789],[1495324800000,7.01789],[1495411200000,7.01789],[1495497600000,7.06376],[1495584000000,7.02728],[1495670400000,7.02216],[1495756800000,7.05062],[1495843200000,7.05146],[1495929600000,7.05146],[1496016000000,7.05146],[1496102400000,7.06334],[1496188800000,7.05076]], 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: [[1493596800000, 6.875497],[1493596800000, 6.875497],[1493683200000, 6.875497],[1493769600000, 6.875497],[1493856000000, 6.909772],[1493942400000, 6.873206],[1494028800000, 6.889927],[1494115200000, 6.889927],[1494201600000, 6.889927],[1494288000000, 6.889927],[1494374400000, 6.889927],[1494460800000, 6.825336],[1494547200000, 6.794616],[1494633600000, 6.827949],[1494720000000, 6.827949],[1494806400000, 6.827949],[1494892800000, 6.900858],[1494979200000, 6.962819],[1495065600000, 7.014659],[1495152000000, 6.955214],[1495238400000, 7.017889],[1495324800000, 7.017889],[1495411200000, 7.017889],[1495497600000, 7.063758],[1495584000000, 7.027276],[1495670400000, 7.022157],[1495756800000, 7.050620],[1495843200000, 7.051464],[1495929600000, 7.051464],[1496016000000, 7.051464],[1496102400000, 7.063344],[1496188800000, 7.050756]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });