$(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: [[1243814400000,7.6185],[1243900800000,7.6105],[1243987200000,7.6115],[1244073600000,7.61],[1244160000000,7.6121],[1244246400000,7.6119],[1244332800000,7.6119],[1244419200000,7.6119],[1244505600000,7.6119],[1244592000000,7.6101],[1244678400000,7.61],[1244764800000,7.6103],[1244851200000,7.6114],[1244937600000,7.6114],[1245024000000,7.6114],[1245110400000,7.6114],[1245196800000,7.6114],[1245283200000,7.619],[1245369600000,7.6174],[1245456000000,7.6168],[1245542400000,7.6168],[1245628800000,7.6168],[1245715200000,7.6103],[1245801600000,7.6111],[1245888000000,7.6235],[1245974400000,7.6285],[1246060800000,7.6303],[1246147200000,7.6303],[1246233600000,7.6303],[1246320000000,7.6303]], 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: [[1243814400000, 7.618500],[1243814400000, 7.618500],[1243900800000, 7.610500],[1243987200000, 7.611500],[1244073600000, 7.610000],[1244160000000, 7.612100],[1244246400000, 7.611900],[1244332800000, 7.611900],[1244419200000, 7.611900],[1244505600000, 7.611900],[1244592000000, 7.610100],[1244678400000, 7.610000],[1244764800000, 7.610300],[1244851200000, 7.611400],[1244937600000, 7.611400],[1245024000000, 7.611400],[1245110400000, 7.611400],[1245196800000, 7.611400],[1245283200000, 7.619000],[1245369600000, 7.617400],[1245456000000, 7.616800],[1245542400000, 7.616800],[1245628800000, 7.616800],[1245715200000, 7.610300],[1245801600000, 7.611100],[1245888000000, 7.623500],[1245974400000, 7.628500],[1246060800000, 7.630300],[1246147200000, 7.630300],[1246233600000, 7.630300],[1246320000000, 7.630300]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });