$(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: 'Курс XDR, грн'}, 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: 'Курс XDR', data: [[1259625600000,12.8618],[1259712000000,12.8718],[1259798400000,12.882],[1259884800000,12.8784],[1259971200000,12.8401],[1260057600000,12.8401],[1260144000000,12.8401],[1260230400000,12.6989],[1260316800000,12.7209],[1260403200000,12.7226],[1260489600000,12.7122],[1260576000000,12.7045],[1260662400000,12.7045],[1260748800000,12.7045],[1260835200000,12.6594],[1260921600000,12.6041],[1261008000000,12.6129],[1261094400000,12.5197],[1261180800000,12.5232],[1261267200000,12.5232],[1261353600000,12.5232],[1261440000000,12.5039],[1261526400000,12.4597],[1261612800000,12.4358],[1261699200000,12.4958],[1261785600000,12.4951],[1261872000000,12.4951],[1261958400000,12.4951],[1262044800000,12.4943],[1262131200000,12.5051],[1262217600000,12.4725]], 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, 12.861808],[1259625600000, 12.861808],[1259712000000, 12.871772],[1259798400000, 12.882002],[1259884800000, 12.878393],[1259971200000, 12.840080],[1260057600000, 12.840080],[1260144000000, 12.840080],[1260230400000, 12.698897],[1260316800000, 12.720897],[1260403200000, 12.722604],[1260489600000, 12.712195],[1260576000000, 12.704526],[1260662400000, 12.704526],[1260748800000, 12.704526],[1260835200000, 12.659441],[1260921600000, 12.604076],[1261008000000, 12.612932],[1261094400000, 12.519695],[1261180800000, 12.523157],[1261267200000, 12.523157],[1261353600000, 12.523157],[1261440000000, 12.503942],[1261526400000, 12.459700],[1261612800000, 12.435796],[1261699200000, 12.495843],[1261785600000, 12.495059],[1261872000000, 12.495059],[1261958400000, 12.495059],[1262044800000, 12.494274],[1262131200000, 12.505120],[1262217600000, 12.472470]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });