$(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: [[1101859200000,7.05459],[1101945600000,7.05406],[1102032000000,7.06468],[1102118400000,7.05725],[1102204800000,7.05725],[1102291200000,7.05725],[1102377600000,7.12888],[1102464000000,7.14002],[1102550400000,7.05711],[1102636800000,7.05977],[1102723200000,null],[1102809600000,null],[1102896000000,null],[1102982400000,7.04],[1103068800000,7.066],[1103155200000,7.10102],[1103241600000,7.11057],[1103328000000,7.03775],[1103414400000,7.03775],[1103500800000,7.03775],[1103587200000,7.0981],[1103673600000,7.10659],[1103760000000,7.10128],[1103846400000,7.13948],[1103932800000,7.18511],[1104019200000,7.18511],[1104105600000,7.18511],[1104192000000,7.17716],[1104278400000,7.2334],[1104364800000,7.21986],[1104451200000,7.21747]], 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: [[1101859200000, 7.054593],[1101859200000, 7.054593],[1101945600000, 7.054062],[1102032000000, 7.064675],[1102118400000, 7.057246],[1102204800000, 7.057246],[1102291200000, 7.057246],[1102377600000, 7.128880],[1102464000000, 7.140023],[1102550400000, 7.057113],[1102636800000, 7.059766],[1102982400000, 7.040001],[1103068800000, 7.066000],[1103155200000, 7.101020],[1103241600000, 7.110571],[1103328000000, 7.037746],[1103414400000, 7.037746],[1103500800000, 7.037746],[1103587200000, 7.098099],[1103673600000, 7.106589],[1103760000000, 7.101283],[1103846400000, 7.139484],[1103932800000, 7.185114],[1104019200000, 7.185114],[1104105600000, 7.185114],[1104192000000, 7.177156],[1104278400000, 7.233397],[1104364800000, 7.219860],[1104451200000, 7.217466]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });