$(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: 'Курс CNY, грн'}, 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: 'Курс CNY', data: [[1362096000000,1.28414],[1362182400000,1.28429],[1362268800000,1.28429],[1362355200000,1.28429],[1362441600000,1.28385],[1362528000000,1.28515],[1362614400000,1.28523],[1362700800000,1.28499],[1362787200000,1.28499],[1362873600000,1.28499],[1362960000000,1.28499],[1363046400000,1.28536],[1363132800000,1.28582],[1363219200000,1.28624],[1363305600000,1.2859],[1363392000000,1.2857],[1363478400000,1.2857],[1363564800000,1.2857],[1363651200000,1.28536],[1363737600000,1.28592],[1363824000000,1.28577],[1363910400000,1.28548],[1363996800000,1.2867],[1364083200000,1.2867],[1364169600000,1.2867],[1364256000000,1.28645],[1364342400000,1.2866],[1364428800000,1.28629],[1364515200000,1.28581],[1364601600000,1.28581],[1364688000000,1.28581]], 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, 1.284142],[1362096000000, 1.284142],[1362182400000, 1.284286],[1362268800000, 1.284286],[1362355200000, 1.284286],[1362441600000, 1.283851],[1362528000000, 1.285151],[1362614400000, 1.285234],[1362700800000, 1.284988],[1362787200000, 1.284988],[1362873600000, 1.284988],[1362960000000, 1.284988],[1363046400000, 1.285361],[1363132800000, 1.285819],[1363219200000, 1.286240],[1363305600000, 1.285897],[1363392000000, 1.285695],[1363478400000, 1.285695],[1363564800000, 1.285695],[1363651200000, 1.285358],[1363737600000, 1.285922],[1363824000000, 1.285765],[1363910400000, 1.285484],[1363996800000, 1.286703],[1364083200000, 1.286703],[1364169600000, 1.286703],[1364256000000, 1.286451],[1364342400000, 1.286599],[1364428800000, 1.286295],[1364515200000, 1.285809],[1364601600000, 1.285809],[1364688000000, 1.285809]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });