$(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: [[1554076800000,37.7731],[1554163200000,37.745],[1554249600000,37.3859],[1554336000000,37.6113],[1554422400000,37.5056],[1554508800000,37.1305],[1554595200000,37.1305],[1554681600000,37.1305],[1554768000000,36.9724],[1554854400000,37.095],[1554940800000,37.1839],[1555027200000,37.292],[1555113600000,37.1398],[1555200000000,37.1398],[1555286400000,37.1398],[1555372800000,37.2798],[1555459200000,37.1432],[1555545600000,37.1069],[1555632000000,37.2414],[1555718400000,37.264],[1555804800000,37.264],[1555891200000,37.264],[1555977600000,37.1408],[1556064000000,37.0217],[1556150400000,36.8301],[1556236800000,36.7517],[1556323200000,36.602],[1556409600000,36.602],[1556496000000,36.602],[1556582400000,36.602]], 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: [[1554076800000, 37.773056],[1554076800000, 37.773056],[1554163200000, 37.744962],[1554249600000, 37.385909],[1554336000000, 37.611258],[1554422400000, 37.505598],[1554508800000, 37.130489],[1554595200000, 37.130489],[1554681600000, 37.130489],[1554768000000, 36.972421],[1554854400000, 37.094967],[1554940800000, 37.183947],[1555027200000, 37.291964],[1555113600000, 37.139791],[1555200000000, 37.139791],[1555286400000, 37.139791],[1555372800000, 37.279784],[1555459200000, 37.143163],[1555545600000, 37.106946],[1555632000000, 37.241366],[1555718400000, 37.264005],[1555804800000, 37.264005],[1555891200000, 37.264005],[1555977600000, 37.140815],[1556064000000, 37.021738],[1556150400000, 36.830147],[1556236800000, 36.751748],[1556323200000, 36.602036],[1556409600000, 36.602036],[1556496000000, 36.602036],[1556582400000, 36.602036]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });