$(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: [[1548979200000,0.42445],[1549065600000,0.4199],[1549152000000,0.4199],[1549238400000,0.4199],[1549324800000,0.41813],[1549411200000,0.41507],[1549497600000,0.41061],[1549584000000,0.40835],[1549670400000,0.40719],[1549756800000,0.40719],[1549843200000,0.40719],[1549929600000,0.41214],[1550016000000,0.41098],[1550102400000,0.41251],[1550188800000,0.40816],[1550275200000,0.40849],[1550361600000,0.40849],[1550448000000,0.40849],[1550534400000,0.41037],[1550620800000,0.41046],[1550707200000,0.41131],[1550793600000,0.412],[1550880000000,0.41238],[1550966400000,0.41238],[1551052800000,0.41238],[1551139200000,0.4136],[1551225600000,0.41121],[1551312000000,0.41049]], 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: [[1548979200000, 0.424450],[1548979200000, 0.424450],[1549065600000, 0.419900],[1549152000000, 0.419900],[1549238400000, 0.419900],[1549324800000, 0.418130],[1549411200000, 0.415070],[1549497600000, 0.410610],[1549584000000, 0.408350],[1549670400000, 0.407190],[1549756800000, 0.407190],[1549843200000, 0.407190],[1549929600000, 0.412140],[1550016000000, 0.410980],[1550102400000, 0.412510],[1550188800000, 0.408160],[1550275200000, 0.408490],[1550361600000, 0.408490],[1550448000000, 0.408490],[1550534400000, 0.410370],[1550620800000, 0.410460],[1550707200000, 0.411310],[1550793600000, 0.412000],[1550880000000, 0.412380],[1550966400000, 0.412380],[1551052800000, 0.412380],[1551139200000, 0.413600],[1551225600000, 0.411210],[1551312000000, 0.410490]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });