$(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: 'Курс RUB, грн'}, 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: 'Курс RUB', data: [[1551398400000,0.40764],[1551484800000,0.40815],[1551571200000,0.40815],[1551657600000,0.40815],[1551744000000,0.40773],[1551830400000,0.40672],[1551916800000,0.40219],[1552003200000,0.40005],[1552089600000,0.40005],[1552176000000,0.40005],[1552262400000,0.40005],[1552348800000,0.39821],[1552435200000,0.4008],[1552521600000,0.40713],[1552608000000,0.4085],[1552694400000,0.41294],[1552780800000,0.41294],[1552867200000,0.41294],[1552953600000,0.41955],[1553040000000,0.4223],[1553126400000,0.42265],[1553212800000,0.4276],[1553299200000,0.42278],[1553385600000,0.42278],[1553472000000,0.42278],[1553558400000,0.41689],[1553644800000,0.42046],[1553731200000,0.41927],[1553817600000,0.4205],[1553904000000,0.42032],[1553990400000,0.42032]], 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: [[1551398400000, 0.407640],[1551398400000, 0.407640],[1551484800000, 0.408150],[1551571200000, 0.408150],[1551657600000, 0.408150],[1551744000000, 0.407730],[1551830400000, 0.406720],[1551916800000, 0.402190],[1552003200000, 0.400050],[1552089600000, 0.400050],[1552176000000, 0.400050],[1552262400000, 0.400050],[1552348800000, 0.398210],[1552435200000, 0.400800],[1552521600000, 0.407130],[1552608000000, 0.408500],[1552694400000, 0.412940],[1552780800000, 0.412940],[1552867200000, 0.412940],[1552953600000, 0.419550],[1553040000000, 0.422300],[1553126400000, 0.422650],[1553212800000, 0.427600],[1553299200000, 0.422780],[1553385600000, 0.422780],[1553472000000, 0.422780],[1553558400000, 0.416890],[1553644800000, 0.420460],[1553731200000, 0.419270],[1553817600000, 0.420500],[1553904000000, 0.420320],[1553990400000, 0.420320]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });