$(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: 'Курс CHF, грн'}, 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: 'Курс CHF', data: [[1259625600000,7.96236],[1259712000000,7.98655],[1259798400000,8.00004],[1259884800000,8.0096],[1259971200000,7.98665],[1260057600000,7.98665],[1260144000000,7.98665],[1260230400000,7.80661],[1260316800000,7.80643],[1260403200000,7.80367],[1260489600000,7.7841],[1260576000000,7.78857],[1260662400000,7.78857],[1260748800000,7.78857],[1260835200000,7.72992],[1260921600000,7.66636],[1261008000000,7.67196],[1261094400000,7.59408],[1261180800000,7.63912],[1261267200000,7.63912],[1261353600000,7.63912],[1261440000000,7.66588],[1261526400000,7.59254],[1261612800000,7.63687],[1261699200000,7.70693],[1261785600000,7.70644],[1261872000000,7.70644],[1261958400000,7.70644],[1262044800000,7.7066],[1262131200000,7.72809],[1262217600000,7.69518]], 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, 7.962359],[1259625600000, 7.962359],[1259712000000, 7.986551],[1259798400000, 8.000043],[1259884800000, 8.009600],[1259971200000, 7.986650],[1260057600000, 7.986650],[1260144000000, 7.986650],[1260230400000, 7.806613],[1260316800000, 7.806433],[1260403200000, 7.803668],[1260489600000, 7.784103],[1260576000000, 7.788574],[1260662400000, 7.788574],[1260748800000, 7.788574],[1260835200000, 7.729920],[1260921600000, 7.666356],[1261008000000, 7.671963],[1261094400000, 7.594082],[1261180800000, 7.639116],[1261267200000, 7.639116],[1261353600000, 7.639116],[1261440000000, 7.665883],[1261526400000, 7.592537],[1261612800000, 7.636869],[1261699200000, 7.706926],[1261785600000, 7.706442],[1261872000000, 7.706442],[1261958400000, 7.706442],[1262044800000, 7.706598],[1262131200000, 7.728085],[1262217600000, 7.695183]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });