$(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: 'Курс XDR, грн'}, 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: 'Курс XDR', data: [[1483228800000,36.4381],[1483315200000,36.4381],[1483401600000,36.4381],[1483488000000,36.4381],[1483574400000,35.7697],[1483660800000,35.7697],[1483747200000,36.4693],[1483833600000,36.4693],[1483920000000,36.4693],[1484006400000,36.4693],[1484092800000,36.5931],[1484179200000,36.4176],[1484265600000,36.8644],[1484352000000,null],[1484438400000,37.388],[1484524800000,37.388],[1484611200000,37.4587],[1484697600000,37.4861],[1484784000000,37.2713],[1484870400000,37.1402],[1484956800000,37.1217],[1485043200000,37.1217],[1485129600000,37.1217],[1485216000000,37.1189],[1485302400000,37.017],[1485388800000,37.0078],[1485475200000,36.9733],[1485561600000,36.8588],[1485648000000,36.8588],[1485734400000,36.8588],[1485820800000,36.7298]], 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: [[1483228800000, 36.438125],[1483228800000, 36.438125],[1483315200000, 36.438125],[1483401600000, 36.438125],[1483488000000, 36.438125],[1483574400000, 35.769671],[1483660800000, 35.769671],[1483747200000, 36.469330],[1483833600000, 36.469330],[1483920000000, 36.469330],[1484006400000, 36.469330],[1484092800000, 36.593086],[1484179200000, 36.417557],[1484265600000, 36.864386],[1484438400000, 37.388025],[1484524800000, 37.388025],[1484611200000, 37.458707],[1484697600000, 37.486134],[1484784000000, 37.271293],[1484870400000, 37.140161],[1484956800000, 37.121661],[1485043200000, 37.121661],[1485129600000, 37.121661],[1485216000000, 37.118946],[1485302400000, 37.016967],[1485388800000, 37.007753],[1485475200000, 36.973336],[1485561600000, 36.858792],[1485648000000, 36.858792],[1485734400000, 36.858792],[1485820800000, 36.729839]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });