$(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: 'Курс LVL, грн'}, 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: 'Курс LVL', data: [[1112313600000,9.70698],[1112400000000,9.7428],[1112486400000,9.7428],[1112572800000,9.7428],[1112659200000,9.68789],[1112745600000,9.63485],[1112832000000,9.66117],[1112918400000,9.67835],[1113004800000,9.61679],[1113091200000,9.61679],[1113177600000,9.61679],[1113264000000,9.68566],[1113350400000,9.71679],[1113436800000,9.70572],[1113523200000,9.62637],[1113609600000,9.51818],[1113696000000,9.51818],[1113782400000,9.51818],[1113868800000,9.57798],[1113955200000,9.61111],[1114041600000,9.38662],[1114128000000,9.4041],[1114214400000,9.3692],[1114300800000,9.3692],[1114387200000,9.3692],[1114473600000,9.35185],[1114560000000,9.35185],[1114646400000,9.31734],[1114732800000,9.30018],[1114819200000,9.28309]], 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: [[1112313600000, 9.706985],[1112313600000, 9.706985],[1112400000000, 9.742804],[1112486400000, 9.742804],[1112572800000, 9.742804],[1112659200000, 9.687890],[1112745600000, 9.634854],[1112832000000, 9.661172],[1112918400000, 9.678349],[1113004800000, 9.616788],[1113091200000, 9.616788],[1113177600000, 9.616788],[1113264000000, 9.685662],[1113350400000, 9.716790],[1113436800000, 9.705720],[1113523200000, 9.626374],[1113609600000, 9.518182],[1113696000000, 9.518182],[1113782400000, 9.518182],[1113868800000, 9.577982],[1113955200000, 9.611111],[1114041600000, 9.386617],[1114128000000, 9.404097],[1114214400000, 9.369202],[1114300800000, 9.369202],[1114387200000, 9.369202],[1114473600000, 9.351852],[1114560000000, 9.351852],[1114646400000, 9.317343],[1114732800000, 9.300184],[1114819200000, 9.283088]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });