$(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: [[1485907200000,29.124],[1485993600000,29.1315],[1486080000000,29.1675],[1486166400000,29.0845],[1486252800000,29.0845],[1486339200000,29.0845],[1486425600000,29.2038],[1486512000000,28.8565],[1486598400000,28.7022],[1486684800000,28.8953],[1486771200000,28.9181],[1486857600000,28.9181],[1486944000000,28.9181],[1487030400000,28.8738],[1487116800000,28.9269],[1487203200000,28.4917],[1487289600000,28.7483],[1487376000000,28.7828],[1487462400000,28.7828],[1487548800000,28.7828],[1487635200000,28.6901],[1487721600000,28.4947],[1487808000000,28.3566],[1487894400000,28.448],[1487980800000,28.6194],[1488067200000,28.6194],[1488153600000,28.6194],[1488240000000,28.6417]], 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: [[1485907200000, 29.124040],[1485907200000, 29.124040],[1485993600000, 29.131474],[1486080000000, 29.167527],[1486166400000, 29.084453],[1486252800000, 29.084453],[1486339200000, 29.084453],[1486425600000, 29.203840],[1486512000000, 28.856547],[1486598400000, 28.702180],[1486684800000, 28.895283],[1486771200000, 28.918143],[1486857600000, 28.918143],[1486944000000, 28.918143],[1487030400000, 28.873795],[1487116800000, 28.926920],[1487203200000, 28.491748],[1487289600000, 28.748346],[1487376000000, 28.782837],[1487462400000, 28.782837],[1487548800000, 28.782837],[1487635200000, 28.690057],[1487721600000, 28.494720],[1487808000000, 28.356578],[1487894400000, 28.448016],[1487980800000, 28.619442],[1488067200000, 28.619442],[1488153600000, 28.619442],[1488240000000, 28.641723]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });