$(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: [[1517443200000,40.5714],[1517529600000,40.5637],[1517616000000,40.6519],[1517702400000,40.6519],[1517788800000,40.6519],[1517875200000,40.3569],[1517961600000,39.8649],[1518048000000,39.3353],[1518134400000,39.181],[1518220800000,39.0897],[1518307200000,39.0897],[1518393600000,39.0897],[1518480000000,38.8127],[1518566400000,38.7177],[1518652800000,38.659],[1518739200000,39.0316],[1518825600000,39.4007],[1518912000000,39.4007],[1518998400000,39.4007],[1519084800000,39.4314],[1519171200000,39.3103],[1519257600000,39.1257],[1519344000000,39.2089],[1519430400000,39.1497],[1519516800000,39.1497],[1519603200000,39.1497],[1519689600000,39.241],[1519776000000,39.1106]], 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, 40.571386],[1517443200000, 40.571386],[1517529600000, 40.563655],[1517616000000, 40.651865],[1517702400000, 40.651865],[1517788800000, 40.651865],[1517875200000, 40.356878],[1517961600000, 39.864914],[1518048000000, 39.335287],[1518134400000, 39.180995],[1518220800000, 39.089687],[1518307200000, 39.089687],[1518393600000, 39.089687],[1518480000000, 38.812682],[1518566400000, 38.717680],[1518652800000, 38.659000],[1518739200000, 39.031619],[1518825600000, 39.400687],[1518912000000, 39.400687],[1518998400000, 39.400687],[1519084800000, 39.431390],[1519171200000, 39.310272],[1519257600000, 39.125745],[1519344000000, 39.208870],[1519430400000, 39.149686],[1519516800000, 39.149686],[1519603200000, 39.149686],[1519689600000, 39.240960],[1519776000000, 39.110606]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });