$(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: [[1433116800000,32.1698],[1433203200000,32.1698],[1433289600000,32.0848],[1433376000000,32.1485],[1433462400000,32.3378],[1433548800000,32.2355],[1433635200000,32.2355],[1433721600000,32.2355],[1433808000000,32.1871],[1433894400000,32.3815],[1433980800000,32.7551],[1434067200000,32.5049],[1434153600000,32.6128],[1434240000000,32.6128],[1434326400000,32.6128],[1434412800000,33.2614],[1434499200000,34.5846],[1434585600000,34.0576],[1434672000000,33.9386],[1434758400000,34.2667],[1434844800000,34.2667],[1434931200000,34.2667],[1435017600000,34.4491],[1435104000000,33.9634],[1435190400000,33.3618],[1435276800000,33.3319],[1435363200000,33.0498],[1435449600000,33.0498],[1435536000000,33.0498],[1435622400000,33.0498]], 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: [[1433116800000, 32.169850],[1433116800000, 32.169850],[1433203200000, 32.169850],[1433289600000, 32.084779],[1433376000000, 32.148504],[1433462400000, 32.337801],[1433548800000, 32.235546],[1433635200000, 32.235546],[1433721600000, 32.235546],[1433808000000, 32.187139],[1433894400000, 32.381486],[1433980800000, 32.755136],[1434067200000, 32.504930],[1434153600000, 32.612845],[1434240000000, 32.612845],[1434326400000, 32.612845],[1434412800000, 33.261370],[1434499200000, 34.584641],[1434585600000, 34.057601],[1434672000000, 33.938562],[1434758400000, 34.266709],[1434844800000, 34.266709],[1434931200000, 34.266709],[1435017600000, 34.449142],[1435104000000, 33.963409],[1435190400000, 33.361778],[1435276800000, 33.331904],[1435363200000, 33.049844],[1435449600000, 33.049844],[1435536000000, 33.049844],[1435622400000, 33.049844]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });