$(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: 'Курс EUR, грн'}, 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: 'Курс EUR', data: [[1243814400000,10.7406],[1243900800000,10.8221],[1243987200000,10.8373],[1244073600000,10.8115],[1244160000000,10.7293],[1244246400000,10.7914],[1244332800000,10.7914],[1244419200000,10.7914],[1244505600000,10.7914],[1244592000000,10.6229],[1244678400000,10.7316],[1244764800000,10.6308],[1244851200000,10.659],[1244937600000,10.659],[1245024000000,10.659],[1245110400000,10.5418],[1245196800000,10.5722],[1245283200000,10.5447],[1245369600000,10.6034],[1245456000000,10.6117],[1245542400000,10.6117],[1245628800000,10.6117],[1245715200000,10.5464],[1245801600000,10.6388],[1245888000000,10.695],[1245974400000,10.6341],[1246060800000,10.7557],[1246147200000,10.7557],[1246233600000,10.7557],[1246320000000,10.7557]], 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, 10.740561],[1243814400000, 10.740561],[1243900800000, 10.822131],[1243987200000, 10.837254],[1244073600000, 10.811527],[1244160000000, 10.729255],[1244246400000, 10.791391],[1244332800000, 10.791391],[1244419200000, 10.791391],[1244505600000, 10.791391],[1244592000000, 10.622939],[1244678400000, 10.731622],[1244764800000, 10.630828],[1244851200000, 10.659005],[1244937600000, 10.659005],[1245024000000, 10.659005],[1245110400000, 10.541789],[1245196800000, 10.572235],[1245283200000, 10.544696],[1245369600000, 10.603421],[1245456000000, 10.611726],[1245542400000, 10.611726],[1245628800000, 10.611726],[1245715200000, 10.546354],[1245801600000, 10.638796],[1245888000000, 10.695008],[1245974400000, 10.634129],[1246060800000, 10.755671],[1246147200000, 10.755671],[1246233600000, 10.755671],[1246320000000, 10.755671]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });