$(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: [[1039046400000,8.37005],[1039132800000,8.36553],[1039219200000,8.36553],[1039305600000,8.36553],[1039392000000,8.41715],[1039478400000,8.41715],[1039564800000,8.37843],[1039651200000,8.41179],[1039737600000,8.45512],[1039824000000,8.45512],[1039910400000,8.45512],[1039996800000,8.47266],[1040083200000,8.52626],[1040169600000,8.52626],[1040256000000,8.55388],[1040342400000,8.54423],[1040428800000,8.54423],[1040515200000,8.54423],[1040601600000,8.54423],[1040688000000,8.50426],[1040774400000,8.48819],[1040860800000,8.48819],[1040947200000,8.53842],[1041033600000,8.53842],[1041120000000,8.53842],[1041206400000,8.53842],[1041292800000,8.53842]], 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: [[1039046400000, 8.370050],[1039046400000, 8.370050],[1039132800000, 8.365530],[1039219200000, 8.365530],[1039305600000, 8.365530],[1039392000000, 8.417150],[1039478400000, 8.417150],[1039564800000, 8.378430],[1039651200000, 8.411790],[1039737600000, 8.455120],[1039824000000, 8.455120],[1039910400000, 8.455120],[1039996800000, 8.472660],[1040083200000, 8.526260],[1040169600000, 8.526260],[1040256000000, 8.553880],[1040342400000, 8.544230],[1040428800000, 8.544230],[1040515200000, 8.544230],[1040601600000, 8.544230],[1040688000000, 8.504260],[1040774400000, 8.488190],[1040860800000, 8.488190],[1040947200000, 8.538420],[1041033600000, 8.538420],[1041120000000, 8.538420],[1041206400000, 8.538420],[1041292800000, 8.538420]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });