$(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: 'Курс DKK, грн'}, 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: 'Курс DKK', data: [[1259625600000,1.61239],[1259712000000,1.61819],[1259798400000,1.62024],[1259884800000,1.6234],[1259971200000,1.61663],[1260057600000,1.61663],[1260144000000,1.61663],[1260230400000,1.58648],[1260316800000,1.58518],[1260403200000,1.58494],[1260489600000,1.58084],[1260576000000,1.58294],[1260662400000,1.58294],[1260748800000,1.58294],[1260835200000,1.57079],[1260921600000,1.55798],[1261008000000,1.55944],[1261094400000,1.53617],[1261180800000,1.53552],[1261267200000,1.53552],[1261353600000,1.53552],[1261440000000,1.53884],[1261526400000,1.52902],[1261612800000,1.52824],[1261699200000,1.54074],[1261785600000,1.54065],[1261872000000,1.54065],[1261958400000,1.54065],[1262044800000,1.54155],[1262131200000,1.54551],[1262217600000,1.53852]], 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: [[1259625600000, 1.612393],[1259625600000, 1.612393],[1259712000000, 1.618194],[1259798400000, 1.620240],[1259884800000, 1.623403],[1259971200000, 1.616627],[1260057600000, 1.616627],[1260144000000, 1.616627],[1260230400000, 1.586479],[1260316800000, 1.585183],[1260403200000, 1.584936],[1260489600000, 1.580837],[1260576000000, 1.582937],[1260662400000, 1.582937],[1260748800000, 1.582937],[1260835200000, 1.570789],[1260921600000, 1.557975],[1261008000000, 1.559445],[1261094400000, 1.536165],[1261180800000, 1.535522],[1261267200000, 1.535522],[1261353600000, 1.535522],[1261440000000, 1.538842],[1261526400000, 1.529016],[1261612800000, 1.528236],[1261699200000, 1.540743],[1261785600000, 1.540647],[1261872000000, 1.540647],[1261958400000, 1.540647],[1262044800000, 1.541547],[1262131200000, 1.545513],[1262217600000, 1.538520]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });