$(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: [[1062374400000,8.41139],[1062460800000,8.35738],[1062547200000,8.33182],[1062633600000,8.37464],[1062720000000,8.41682],[1062806400000,8.41682],[1062892800000,8.41682],[1062979200000,8.45026],[1063065600000,8.45071],[1063152000000,8.47276],[1063238400000,8.49964],[1063324800000,8.49694],[1063411200000,8.49694],[1063497600000,8.49694],[1063584000000,8.5457],[1063670400000,8.49878],[1063756800000,8.5371],[1063843200000,8.5371],[1063929600000,8.67677],[1064016000000,8.67677],[1064102400000,8.67677],[1064188800000,8.77496],[1064275200000,8.77496],[1064361600000,null],[1064448000000,null],[1064534400000,null],[1064620800000,null],[1064707200000,null],[1064793600000,8.85495],[1064880000000,8.77917]], 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: [[1062374400000, 8.411390],[1062374400000, 8.411390],[1062460800000, 8.357380],[1062547200000, 8.331820],[1062633600000, 8.374640],[1062720000000, 8.416820],[1062806400000, 8.416820],[1062892800000, 8.416820],[1062979200000, 8.450260],[1063065600000, 8.450710],[1063152000000, 8.472760],[1063238400000, 8.499640],[1063324800000, 8.496940],[1063411200000, 8.496940],[1063497600000, 8.496940],[1063584000000, 8.545700],[1063670400000, 8.498780],[1063756800000, 8.537100],[1063843200000, 8.537100],[1063929600000, 8.676770],[1064016000000, 8.676770],[1064102400000, 8.676770],[1064188800000, 8.774960],[1064275200000, 8.774960],[1064793600000, 8.854950],[1064880000000, 8.779170]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });