$(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: 'Курс XDR, грн'}, 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: 'Курс XDR', data: [[1141171200000,7.24689],[1141257600000,7.26346],[1141344000000,7.25926],[1141430400000,7.27878],[1141516800000,7.27878],[1141603200000,7.27878],[1141689600000,7.27691],[1141776000000,7.23561],[1141862400000,7.23561],[1141948800000,7.24614],[1142035200000,7.24614],[1142121600000,7.24614],[1142208000000,7.24614],[1142294400000,7.22947],[1142380800000,7.24229],[1142467200000,7.26842],[1142553600000,7.27719],[1142640000000,7.31359],[1142726400000,7.31359],[1142812800000,7.31359],[1142899200000,7.31025],[1142985600000,7.2994],[1143072000000,7.2826],[1143158400000,7.27504],[1143244800000,7.24481],[1143331200000,7.24481],[1143417600000,7.24481],[1143504000000,7.27386],[1143590400000,7.28064],[1143676800000,7.26106],[1143763200000,7.27514]], 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: [[1141171200000, 7.246886],[1141171200000, 7.246886],[1141257600000, 7.263459],[1141344000000, 7.259262],[1141430400000, 7.278776],[1141516800000, 7.278776],[1141603200000, 7.278776],[1141689600000, 7.276909],[1141776000000, 7.235610],[1141862400000, 7.235610],[1141948800000, 7.246138],[1142035200000, 7.246138],[1142121600000, 7.246138],[1142208000000, 7.246138],[1142294400000, 7.229468],[1142380800000, 7.242293],[1142467200000, 7.268415],[1142553600000, 7.277192],[1142640000000, 7.313594],[1142726400000, 7.313594],[1142812800000, 7.313594],[1142899200000, 7.310248],[1142985600000, 7.299397],[1143072000000, 7.282596],[1143158400000, 7.275043],[1143244800000, 7.244807],[1143331200000, 7.244807],[1143417600000, 7.244807],[1143504000000, 7.273859],[1143590400000, 7.280644],[1143676800000, 7.261057],[1143763200000, 7.275137]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });