$(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: 'Курс EUR, грн'}, 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: 'Курс EUR', data: [[1062374400000,5.82573],[1062460800000,5.78414],[1062547200000,5.74896],[1062633600000,5.76762],[1062720000000,5.8236],[1062806400000,5.8236],[1062892800000,5.8236],[1062979200000,5.9025],[1063065600000,5.93663],[1063152000000,5.95635],[1063238400000,5.98034],[1063324800000,5.95635],[1063411200000,5.95635],[1063497600000,5.95635],[1063584000000,6.01446],[1063670400000,5.98994],[1063756800000,5.97768],[1063843200000,5.97768],[1063929600000,6.03122],[1064016000000,6.03122],[1064102400000,6.03122],[1064188800000,6.11439],[1064275200000,6.11439],[1064361600000,null],[1064448000000,null],[1064534400000,null],[1064620800000,null],[1064707200000,null],[1064793600000,6.12452],[1064880000000,6.08484]], 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, 5.825730],[1062374400000, 5.825730],[1062460800000, 5.784140],[1062547200000, 5.748960],[1062633600000, 5.767620],[1062720000000, 5.823600],[1062806400000, 5.823600],[1062892800000, 5.823600],[1062979200000, 5.902500],[1063065600000, 5.936630],[1063152000000, 5.956350],[1063238400000, 5.980340],[1063324800000, 5.956350],[1063411200000, 5.956350],[1063497600000, 5.956350],[1063584000000, 6.014460],[1063670400000, 5.989940],[1063756800000, 5.977680],[1063843200000, 5.977680],[1063929600000, 6.031220],[1064016000000, 6.031220],[1064102400000, 6.031220],[1064188800000, 6.114390],[1064275200000, 6.114390],[1064793600000, 6.124520],[1064880000000, 6.084840]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });