$(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: [[1530403200000,37.0785],[1530489600000,37.0785],[1530576000000,36.8755],[1530662400000,36.9867],[1530748800000,37.1818],[1530835200000,37.236],[1530921600000,37.0882],[1531008000000,37.0882],[1531094400000,37.0882],[1531180800000,37.1114],[1531267200000,36.9242],[1531353600000,36.9287],[1531440000000,36.8405],[1531526400000,36.7787],[1531612800000,36.7787],[1531699200000,36.7787],[1531785600000,36.8911],[1531872000000,36.8906],[1531958400000,36.8192],[1532044800000,36.9935],[1532131200000,37.0306],[1532217600000,37.0306],[1532304000000,37.0306],[1532390400000,37.1668],[1532476800000,37.3494],[1532563200000,37.4156],[1532649600000,37.4687],[1532736000000,37.4805],[1532822400000,37.4805],[1532908800000,37.4805],[1532995200000,37.5446]], 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: [[1530403200000, 37.078471],[1530403200000, 37.078471],[1530489600000, 37.078471],[1530576000000, 36.875520],[1530662400000, 36.986668],[1530748800000, 37.181766],[1530835200000, 37.235951],[1530921600000, 37.088173],[1531008000000, 37.088173],[1531094400000, 37.088173],[1531180800000, 37.111410],[1531267200000, 36.924208],[1531353600000, 36.928665],[1531440000000, 36.840505],[1531526400000, 36.778711],[1531612800000, 36.778711],[1531699200000, 36.778711],[1531785600000, 36.891139],[1531872000000, 36.890628],[1531958400000, 36.819195],[1532044800000, 36.993494],[1532131200000, 37.030648],[1532217600000, 37.030648],[1532304000000, 37.030648],[1532390400000, 37.166806],[1532476800000, 37.349371],[1532563200000, 37.415641],[1532649600000, 37.468701],[1532736000000, 37.480471],[1532822400000, 37.480471],[1532908800000, 37.480471],[1532995200000, 37.544643]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });