$(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: [[1548979200000,1.62369],[1549065600000,1.6154],[1549152000000,1.6154],[1549238400000,1.6154],[1549324800000,1.60647],[1549411200000,1.59359],[1549497600000,1.57748],[1549584000000,1.5764],[1549670400000,1.57218],[1549756800000,1.57218],[1549843200000,1.57218],[1549929600000,1.58086],[1550016000000,1.57713],[1550102400000,1.58146],[1550188800000,1.58532],[1550275200000,1.59028],[1550361600000,1.59028],[1550448000000,1.59028],[1550534400000,1.58755],[1550620800000,1.58641],[1550707200000,1.58187],[1550793600000,1.57611],[1550880000000,1.5771],[1550966400000,1.5771],[1551052800000,1.5771],[1551139200000,1.57419],[1551225600000,1.57354],[1551312000000,1.57334]], 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, 1.623693],[1548979200000, 1.623693],[1549065600000, 1.615402],[1549152000000, 1.615402],[1549238400000, 1.615402],[1549324800000, 1.606468],[1549411200000, 1.593593],[1549497600000, 1.577484],[1549584000000, 1.576404],[1549670400000, 1.572180],[1549756800000, 1.572180],[1549843200000, 1.572180],[1549929600000, 1.580862],[1550016000000, 1.577135],[1550102400000, 1.581461],[1550188800000, 1.585317],[1550275200000, 1.590282],[1550361600000, 1.590282],[1550448000000, 1.590282],[1550534400000, 1.587554],[1550620800000, 1.586407],[1550707200000, 1.581866],[1550793600000, 1.576115],[1550880000000, 1.577101],[1550966400000, 1.577101],[1551052800000, 1.577101],[1551139200000, 1.574194],[1551225600000, 1.573542],[1551312000000, 1.573344]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });