$(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: 'Курс TRY, грн'}, 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: 'Курс TRY', data: [[1328054400000,4.51231],[1328140800000,4.53101],[1328227200000,4.52105],[1328313600000,4.54934],[1328400000000,4.54934],[1328486400000,4.54934],[1328572800000,4.52716],[1328659200000,4.54017],[1328745600000,4.57324],[1328832000000,4.55059],[1328918400000,4.52172],[1329004800000,4.52172],[1329091200000,4.52172],[1329177600000,4.54139],[1329264000000,4.51346],[1329350400000,4.52709],[1329436800000,4.49903],[1329523200000,4.55175],[1329609600000,4.55175],[1329696000000,4.55175],[1329782400000,4.5883],[1329868800000,4.55566],[1329955200000,4.56002],[1330041600000,4.52801],[1330128000000,4.53145],[1330214400000,4.53145],[1330300800000,4.53145],[1330387200000,4.51221],[1330473600000,4.55696]], 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: [[1328054400000, 4.512314],[1328054400000, 4.512314],[1328140800000, 4.531005],[1328227200000, 4.521052],[1328313600000, 4.549345],[1328400000000, 4.549345],[1328486400000, 4.549345],[1328572800000, 4.527161],[1328659200000, 4.540169],[1328745600000, 4.573237],[1328832000000, 4.550589],[1328918400000, 4.521725],[1329004800000, 4.521725],[1329091200000, 4.521725],[1329177600000, 4.541394],[1329264000000, 4.513463],[1329350400000, 4.527086],[1329436800000, 4.499034],[1329523200000, 4.551747],[1329609600000, 4.551747],[1329696000000, 4.551747],[1329782400000, 4.588299],[1329868800000, 4.555664],[1329955200000, 4.560020],[1330041600000, 4.528009],[1330128000000, 4.531451],[1330214400000, 4.531451],[1330300800000, 4.531451],[1330387200000, 4.512214],[1330473600000, 4.556958]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });