$(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: 'Курс USD, грн'}, 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: 'Курс USD', data: [[1522540800000,26.307],[1522627200000,26.307],[1522713600000,26.161],[1522800000000,26.3296],[1522886400000,26.2631],[1522972800000,26.0665],[1523059200000,26.027],[1523145600000,26.027],[1523232000000,26.027],[1523318400000,26.027],[1523404800000,25.9755],[1523491200000,25.9259],[1523577600000,25.9864],[1523664000000,26.1249],[1523750400000,26.1249],[1523836800000,26.1249],[1523923200000,26.0893],[1524009600000,26.0829],[1524096000000,26.1478],[1524182400000,26.226],[1524268800000,26.1785],[1524355200000,26.1785],[1524441600000,26.1785],[1524528000000,26.1256],[1524614400000,26.1773],[1524700800000,26.2705],[1524787200000,26.23],[1524873600000,26.1956],[1524960000000,26.1956],[1525046400000,26.1956]], 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: [[1522540800000, 26.307046],[1522540800000, 26.307046],[1522627200000, 26.307046],[1522713600000, 26.160960],[1522800000000, 26.329568],[1522886400000, 26.263057],[1522972800000, 26.066537],[1523059200000, 26.026968],[1523145600000, 26.026968],[1523232000000, 26.026968],[1523318400000, 26.026968],[1523404800000, 25.975527],[1523491200000, 25.925912],[1523577600000, 25.986350],[1523664000000, 26.124909],[1523750400000, 26.124909],[1523836800000, 26.124909],[1523923200000, 26.089279],[1524009600000, 26.082873],[1524096000000, 26.147772],[1524182400000, 26.225963],[1524268800000, 26.178455],[1524355200000, 26.178455],[1524441600000, 26.178455],[1524528000000, 26.125554],[1524614400000, 26.177264],[1524700800000, 26.270545],[1524787200000, 26.230047],[1524873600000, 26.195648],[1524960000000, 26.195648],[1525046400000, 26.195648]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });