$(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: [[1362096000000,12.1599],[1362182400000,12.0168],[1362268800000,12.0168],[1362355200000,12.0168],[1362441600000,12.033],[1362528000000,12.1169],[1362614400000,12.0533],[1362700800000,12.0218],[1362787200000,12.0218],[1362873600000,12.0218],[1362960000000,12.0218],[1363046400000,11.8923],[1363132800000,11.906],[1363219200000,11.9563],[1363305600000,11.9447],[1363392000000,12.1061],[1363478400000,12.1061],[1363564800000,12.1061],[1363651200000,12.0698],[1363737600000,12.0887],[1363824000000,12.0989],[1363910400000,12.1164],[1363996800000,12.1357],[1364083200000,12.1357],[1364169600000,12.1357],[1364256000000,12.1406],[1364342400000,12.1081],[1364428800000,12.0753],[1364515200000,12.1039],[1364601600000,12.1039],[1364688000000,12.1039]], 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: [[1362096000000, 12.159919],[1362096000000, 12.159919],[1362182400000, 12.016769],[1362268800000, 12.016769],[1362355200000, 12.016769],[1362441600000, 12.032980],[1362528000000, 12.116860],[1362614400000, 12.053303],[1362700800000, 12.021842],[1362787200000, 12.021842],[1362873600000, 12.021842],[1362960000000, 12.021842],[1363046400000, 11.892259],[1363132800000, 11.906040],[1363219200000, 11.956342],[1363305600000, 11.944720],[1363392000000, 12.106065],[1363478400000, 12.106065],[1363564800000, 12.106065],[1363651200000, 12.069785],[1363737600000, 12.088730],[1363824000000, 12.098852],[1363910400000, 12.116436],[1363996800000, 12.135713],[1364083200000, 12.135713],[1364169600000, 12.135713],[1364256000000, 12.140612],[1364342400000, 12.108124],[1364428800000, 12.075327],[1364515200000, 12.103875],[1364601600000, 12.103875],[1364688000000, 12.103875]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });