$(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: 'Курс MDL, грн'}, 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: 'Курс MDL', data: [[1546300800000,1.61516],[1546387200000,1.61516],[1546473600000,1.61516],[1546560000000,1.59831],[1546646400000,1.6098],[1546732800000,1.6098],[1546819200000,1.6098],[1546905600000,1.6098],[1546992000000,1.62843],[1547078400000,1.63681],[1547164800000,1.64966],[1547251200000,1.64478],[1547337600000,1.64478],[1547424000000,1.64478],[1547510400000,1.63615],[1547596800000,1.64312],[1547683200000,1.63149],[1547769600000,1.63396],[1547856000000,1.63232],[1547942400000,1.63232],[1548028800000,1.63232],[1548115200000,1.63079],[1548201600000,1.62943],[1548288000000,1.61772],[1548374400000,1.62352],[1548460800000,1.6252],[1548547200000,1.6252],[1548633600000,1.6252],[1548720000000,1.62442],[1548806400000,1.6241],[1548892800000,1.62314]], 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: [[1546300800000, 1.615164],[1546300800000, 1.615164],[1546387200000, 1.615164],[1546473600000, 1.615164],[1546560000000, 1.598308],[1546646400000, 1.609795],[1546732800000, 1.609795],[1546819200000, 1.609795],[1546905600000, 1.609795],[1546992000000, 1.628426],[1547078400000, 1.636806],[1547164800000, 1.649656],[1547251200000, 1.644779],[1547337600000, 1.644779],[1547424000000, 1.644779],[1547510400000, 1.636151],[1547596800000, 1.643117],[1547683200000, 1.631494],[1547769600000, 1.633955],[1547856000000, 1.632316],[1547942400000, 1.632316],[1548028800000, 1.632316],[1548115200000, 1.630787],[1548201600000, 1.629430],[1548288000000, 1.617716],[1548374400000, 1.623519],[1548460800000, 1.625202],[1548547200000, 1.625202],[1548633600000, 1.625202],[1548720000000, 1.624420],[1548806400000, 1.624097],[1548892800000, 1.623140]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });