$(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: 'Курс GBP, грн'}, 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: 'Курс GBP', data: [[1270080000000,12.0051],[1270166400000,12.0624],[1270252800000,12.0624],[1270339200000,12.0624],[1270425600000,12.0624],[1270512000000,12.0624],[1270598400000,12.0312],[1270684800000,12.0281],[1270771200000,12.0444],[1270857600000,12.1661],[1270944000000,12.1661],[1271030400000,12.1661],[1271116800000,12.2019],[1271203200000,12.2178],[1271289600000,12.2438],[1271376000000,12.2354],[1271462400000,12.2307],[1271548800000,12.2307],[1271635200000,12.2307],[1271721600000,12.0909],[1271808000000,12.1945],[1271894400000,12.1973],[1271980800000,12.1975],[1272067200000,12.1642],[1272153600000,12.1642],[1272240000000,12.1642],[1272326400000,12.243],[1272412800000,12.1487],[1272499200000,12.0554],[1272585600000,12.1064]], 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: [[1270080000000, 12.005066],[1270080000000, 12.005066],[1270166400000, 12.062372],[1270252800000, 12.062372],[1270339200000, 12.062372],[1270425600000, 12.062372],[1270512000000, 12.062372],[1270598400000, 12.031199],[1270684800000, 12.028085],[1270771200000, 12.044353],[1270857600000, 12.166087],[1270944000000, 12.166087],[1271030400000, 12.166087],[1271116800000, 12.201870],[1271203200000, 12.217764],[1271289600000, 12.243768],[1271376000000, 12.235372],[1271462400000, 12.230727],[1271548800000, 12.230727],[1271635200000, 12.230727],[1271721600000, 12.090936],[1271808000000, 12.194483],[1271894400000, 12.197284],[1271980800000, 12.197548],[1272067200000, 12.164225],[1272153600000, 12.164225],[1272240000000, 12.164225],[1272326400000, 12.242994],[1272412800000, 12.148689],[1272499200000, 12.055414],[1272585600000, 12.106439]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });