$(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: [[1335830400000,10.5698],[1335916800000,10.5698],[1336003200000,10.5698],[1336089600000,10.4851],[1336176000000,10.4923],[1336262400000,10.4923],[1336348800000,10.4923],[1336435200000,10.4117],[1336521600000,10.4055],[1336608000000,10.4055],[1336694400000,10.3558],[1336780800000,10.3423],[1336867200000,10.3423],[1336953600000,10.3423],[1337040000000,10.2775],[1337126400000,10.2616],[1337212800000,10.1777],[1337299200000,10.1342],[1337385600000,10.166],[1337472000000,10.166],[1337558400000,10.166],[1337644800000,10.1892],[1337731200000,10.2048],[1337817600000,10.1177],[1337904000000,10.0362],[1337990400000,10.0274],[1338076800000,10.0274],[1338163200000,10.0274],[1338249600000,10.0434],[1338336000000,10.009],[1338422400000,9.94107]], 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: [[1335830400000, 10.569839],[1335830400000, 10.569839],[1335916800000, 10.569839],[1336003200000, 10.569839],[1336089600000, 10.485146],[1336176000000, 10.492337],[1336262400000, 10.492337],[1336348800000, 10.492337],[1336435200000, 10.411673],[1336521600000, 10.405542],[1336608000000, 10.405542],[1336694400000, 10.355839],[1336780800000, 10.342256],[1336867200000, 10.342256],[1336953600000, 10.342256],[1337040000000, 10.277537],[1337126400000, 10.261557],[1337212800000, 10.177662],[1337299200000, 10.134186],[1337385600000, 10.165987],[1337472000000, 10.165987],[1337558400000, 10.165987],[1337644800000, 10.189163],[1337731200000, 10.204824],[1337817600000, 10.117706],[1337904000000, 10.036182],[1337990400000, 10.027391],[1338076800000, 10.027391],[1338163200000, 10.027391],[1338249600000, 10.043376],[1338336000000, 10.009008],[1338422400000, 9.941072]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });