$(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: [[1114905600000,1.53185],[1114992000000,1.53185],[1115078400000,1.53185],[1115164800000,1.53185],[1115251200000,1.5593],[1115337600000,1.57474],[1115424000000,1.58272],[1115510400000,1.58272],[1115596800000,1.58272],[1115683200000,1.58272],[1115769600000,1.55767],[1115856000000,1.56024],[1115942400000,1.55774],[1116028800000,1.53175],[1116115200000,1.53175],[1116201600000,1.53175],[1116288000000,1.50841],[1116374400000,1.51453],[1116460800000,1.5185],[1116547200000,1.53411],[1116633600000,1.52543],[1116720000000,1.52543],[1116806400000,1.52543],[1116892800000,1.51611],[1116979200000,1.52401],[1117065600000,1.51667],[1117152000000,1.51385],[1117238400000,1.523],[1117324800000,1.523],[1117411200000,1.523],[1117497600000,1.51988]], 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: [[1114905600000, 1.531847],[1114905600000, 1.531847],[1114992000000, 1.531847],[1115078400000, 1.531847],[1115164800000, 1.531847],[1115251200000, 1.559300],[1115337600000, 1.574736],[1115424000000, 1.582725],[1115510400000, 1.582725],[1115596800000, 1.582725],[1115683200000, 1.582725],[1115769600000, 1.557668],[1115856000000, 1.560237],[1115942400000, 1.557740],[1116028800000, 1.531754],[1116115200000, 1.531754],[1116201600000, 1.531754],[1116288000000, 1.508412],[1116374400000, 1.514533],[1116460800000, 1.518501],[1116547200000, 1.534113],[1116633600000, 1.525430],[1116720000000, 1.525430],[1116806400000, 1.525430],[1116892800000, 1.516112],[1116979200000, 1.524011],[1117065600000, 1.516666],[1117152000000, 1.513852],[1117238400000, 1.522997],[1117324800000, 1.522997],[1117411200000, 1.522997],[1117497600000, 1.519875]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });