$(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: 'Курс PLN, грн'}, 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: 'Курс PLN', data: [[1095120000000,1.47733],[1095206400000,1.48949],[1095292800000,1.48949],[1095379200000,1.48449],[1095465600000,1.49054],[1095552000000,1.49054],[1095638400000,1.49054],[1095724800000,1.49172],[1095811200000,1.50982],[1095897600000,1.50581],[1095984000000,1.50523],[1096070400000,1.4986],[1096156800000,1.4986],[1096243200000,1.4986],[1096329600000,1.48938],[1096416000000,1.49629],[1096502400000,1.49957],[1096588800000,1.5038],[1096675200000,null],[1096761600000,null],[1096848000000,1.50991],[1096934400000,1.51031],[1097020800000,1.51317],[1097107200000,1.50851],[1097193600000,1.50247],[1097280000000,1.50247],[1097366400000,1.50247],[1097452800000,1.50905],[1097539200000,1.52741],[1097625600000,1.52048],[1097712000000,1.51117],[1097798400000,1.5293],[1097884800000,null],[1097971200000,1.52798],[1098057600000,1.52798],[1098144000000,1.54292],[1098230400000,1.54794],[1098316800000,1.5547],[1098403200000,1.55458],[1098489600000,1.56082],[1098576000000,1.56082],[1098662400000,1.56082],[1098748800000,1.56855],[1098835200000,1.557],[1098921600000,1.56109],[1099008000000,1.55331],[1099094400000,1.56282],[1099180800000,1.56282],[1099267200000,1.56282],[1099353600000,1.56758],[1099440000000,1.56527],[1099526400000,1.57404],[1099612800000,null],[1099699200000,null],[1099785600000,null],[1099872000000,null],[1099958400000,null],[1100044800000,1.61647],[1100131200000,1.61647],[1100217600000,1.59555],[1100304000000,1.5988],[1100390400000,1.5988],[1100476800000,1.5988],[1100563200000,1.61135],[1100649600000,1.61618],[1100736000000,1.62338],[1100822400000,1.62454],[1100908800000,1.62764],[1100995200000,1.62764],[1101081600000,1.62764],[1101168000000,1.63554],[1101254400000,1.65258],[1101340800000,1.6547],[1101427200000,1.66242],[1101513600000,1.66718],[1101600000000,1.66718],[1101686400000,1.66718],[1101772800000,1.66875],[1101859200000,1.67667],[1101945600000,1.68814],[1102032000000,1.69295],[1102118400000,1.6906],[1102204800000,1.6906],[1102291200000,1.6906],[1102377600000,1.70928],[1102464000000,1.71047],[1102550400000,1.67807],[1102636800000,1.68583],[1102723200000,null],[1102809600000,null],[1102896000000,null],[1102982400000,1.67535],[1103068800000,1.691],[1103155200000,1.70796],[1103241600000,1.70878],[1103328000000,1.69727],[1103414400000,1.69727],[1103500800000,1.69727],[1103587200000,1.72188],[1103673600000,1.73243],[1103760000000,1.73592],[1103846400000,1.75331],[1103932800000,1.76292],[1104019200000,1.76292],[1104105600000,1.76292],[1104192000000,1.7693],[1104278400000,1.78483],[1104364800000,1.7761]], 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: [[1095206400000, 1.494473],[1095206400000, 1.494473],[1097798400000, 1.534095],[1100476800000, 1.621140],[1103068800000, 1.718651]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });