$(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: [[1112313600000,5.2806],[1112400000000,5.2806],[1112486400000,5.2806],[1112572800000,5.2806],[1112659200000,5.2799],[1112745600000,5.2799],[1112832000000,5.275],[1112918400000,5.2747],[1113004800000,5.27],[1113091200000,5.27],[1113177600000,5.27],[1113264000000,5.269],[1113350400000,5.2665],[1113436800000,5.2605],[1113523200000,5.256],[1113609600000,5.235],[1113696000000,5.235],[1113782400000,5.235],[1113868800000,5.22],[1113955200000,5.19],[1114041600000,5.05],[1114128000000,5.05],[1114214400000,5.05],[1114300800000,5.05],[1114387200000,5.05],[1114473600000,5.05],[1114560000000,5.05],[1114646400000,5.05],[1114732800000,5.05],[1114819200000,5.05]], 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, 5.280600],[1112313600000, 5.280600],[1112400000000, 5.280600],[1112486400000, 5.280600],[1112572800000, 5.280600],[1112659200000, 5.279900],[1112745600000, 5.279900],[1112832000000, 5.275000],[1112918400000, 5.274700],[1113004800000, 5.270000],[1113091200000, 5.270000],[1113177600000, 5.270000],[1113264000000, 5.269000],[1113350400000, 5.266500],[1113436800000, 5.260500],[1113523200000, 5.256000],[1113609600000, 5.235000],[1113696000000, 5.235000],[1113782400000, 5.235000],[1113868800000, 5.220000],[1113955200000, 5.190000],[1114041600000, 5.050000],[1114128000000, 5.050000],[1114214400000, 5.050000],[1114300800000, 5.050000],[1114387200000, 5.050000],[1114473600000, 5.050000],[1114560000000, 5.050000],[1114646400000, 5.050000],[1114732800000, 5.050000],[1114819200000, 5.050000]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });