$(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: 'Курс SGD, грн'}, 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: 'Курс SGD', data: [[1259625600000,5.77232],[1259712000000,5.78375],[1259798400000,5.7886],[1259884800000,5.79474],[1259971200000,5.78157],[1260057600000,5.78157],[1260144000000,5.78157],[1260230400000,5.73438],[1260316800000,5.73471],[1260403200000,5.74611],[1260489600000,5.74616],[1260576000000,5.74785],[1260662400000,5.74785],[1260748800000,5.74785],[1260835200000,5.73196],[1260921600000,5.71603],[1261008000000,5.71037],[1261094400000,5.6799],[1261180800000,5.68431],[1261267200000,5.68431],[1261353600000,5.68431],[1261440000000,5.68161],[1261526400000,5.66793],[1261612800000,5.64746],[1261699200000,5.67149],[1261785600000,5.67113],[1261872000000,5.67113],[1261958400000,5.67113],[1262044800000,5.66429],[1262131200000,5.68088],[1262217600000,5.68465]], 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, 5.772318],[1259625600000, 5.772318],[1259712000000, 5.783748],[1259798400000, 5.788605],[1259884800000, 5.794743],[1259971200000, 5.781570],[1260057600000, 5.781570],[1260144000000, 5.781570],[1260230400000, 5.734380],[1260316800000, 5.734711],[1260403200000, 5.746109],[1260489600000, 5.746161],[1260576000000, 5.747850],[1260662400000, 5.747850],[1260748800000, 5.747850],[1260835200000, 5.731959],[1260921600000, 5.716033],[1261008000000, 5.710369],[1261094400000, 5.679902],[1261180800000, 5.684305],[1261267200000, 5.684305],[1261353600000, 5.684305],[1261440000000, 5.681615],[1261526400000, 5.667929],[1261612800000, 5.647461],[1261699200000, 5.671486],[1261785600000, 5.671130],[1261872000000, 5.671130],[1261958400000, 5.671130],[1262044800000, 5.664288],[1262131200000, 5.680877],[1262217600000, 5.684654]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });