$(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: 'Курс USD, грн'}, 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: 'Курс USD', data: [[1517443200000,27.8435],[1517529600000,27.8695],[1517616000000,27.8871],[1517702400000,27.8871],[1517788800000,27.8871],[1517875200000,27.7424],[1517961600000,27.4609],[1518048000000,27.1196],[1518134400000,27.124],[1518220800000,27.0585],[1518307200000,27.0585],[1518393600000,27.0585],[1518480000000,26.8404],[1518566400000,26.6995],[1518652800000,26.6548],[1518739200000,26.7598],[1518825600000,26.9909],[1518912000000,26.9909],[1518998400000,26.9909],[1519084800000,27.0119],[1519171200000,27.0729],[1519257600000,26.988],[1519344000000,27.0718],[1519430400000,26.9887],[1519516800000,26.9887],[1519603200000,26.9887],[1519689600000,27.0066],[1519776000000,26.9482]], 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: [[1517443200000, 27.843493],[1517443200000, 27.843493],[1517529600000, 27.869462],[1517616000000, 27.887139],[1517702400000, 27.887139],[1517788800000, 27.887139],[1517875200000, 27.742448],[1517961600000, 27.460866],[1518048000000, 27.119635],[1518134400000, 27.124023],[1518220800000, 27.058546],[1518307200000, 27.058546],[1518393600000, 27.058546],[1518480000000, 26.840367],[1518566400000, 26.699480],[1518652800000, 26.654762],[1518739200000, 26.759805],[1518825600000, 26.990889],[1518912000000, 26.990889],[1518998400000, 26.990889],[1519084800000, 27.011922],[1519171200000, 27.072945],[1519257600000, 26.988039],[1519344000000, 27.071843],[1519430400000, 26.988658],[1519516800000, 26.988658],[1519603200000, 26.988658],[1519689600000, 27.006610],[1519776000000, 26.948185]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });