$(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: 'Курс RUB, грн'}, 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: 'Курс RUB', data: [[1291161600000,0.25334],[1291248000000,0.25236],[1291334400000,0.25325],[1291420800000,0.25403],[1291507200000,0.25403],[1291593600000,0.25403],[1291680000000,0.25438],[1291766400000,0.25468],[1291852800000,0.2545],[1291939200000,0.25664],[1292025600000,0.25771],[1292112000000,0.25771],[1292198400000,0.25771],[1292284800000,0.25738],[1292371200000,0.25901],[1292457600000,0.25922],[1292544000000,0.25895],[1292630400000,0.25967],[1292716800000,0.25967],[1292803200000,0.25967],[1292889600000,0.25877],[1292976000000,0.25924],[1293062400000,0.25924],[1293148800000,0.26031],[1293235200000,0.26037],[1293321600000,0.26037],[1293408000000,0.26037],[1293494400000,0.26145],[1293580800000,0.26299],[1293667200000,0.26218],[1293753600000,0.26124]], 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: [[1291161600000, 0.253340],[1291161600000, 0.253340],[1291248000000, 0.252360],[1291334400000, 0.253250],[1291420800000, 0.254030],[1291507200000, 0.254030],[1291593600000, 0.254030],[1291680000000, 0.254380],[1291766400000, 0.254680],[1291852800000, 0.254500],[1291939200000, 0.256640],[1292025600000, 0.257710],[1292112000000, 0.257710],[1292198400000, 0.257710],[1292284800000, 0.257380],[1292371200000, 0.259010],[1292457600000, 0.259220],[1292544000000, 0.258950],[1292630400000, 0.259670],[1292716800000, 0.259670],[1292803200000, 0.259670],[1292889600000, 0.258770],[1292976000000, 0.259240],[1293062400000, 0.259240],[1293148800000, 0.260310],[1293235200000, 0.260370],[1293321600000, 0.260370],[1293408000000, 0.260370],[1293494400000, 0.261450],[1293580800000, 0.262990],[1293667200000, 0.262180],[1293753600000, 0.261240]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });