$(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: 'Курс USD, грн'}, 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: 'Курс USD', data: [[1259625600000,7.9878],[1259712000000,7.9892],[1259798400000,7.9905],[1259884800000,7.99],[1259971200000,7.984],[1260057600000,7.984],[1260144000000,7.984],[1260230400000,7.984],[1260316800000,7.9845],[1260403200000,7.9865],[1260489600000,7.9865],[1260576000000,7.9828],[1260662400000,7.9828],[1260748800000,7.9828],[1260835200000,7.9806],[1260921600000,7.9732],[1261008000000,7.9702],[1261094400000,7.97],[1261180800000,7.97],[1261267200000,7.97],[1261353600000,7.97],[1261440000000,7.97],[1261526400000,7.969],[1261612800000,7.968],[1261699200000,7.966],[1261785600000,7.9655],[1261872000000,7.9655],[1261958400000,7.9655],[1262044800000,7.965],[1262131200000,7.9685],[1262217600000,7.985]], 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.987800],[1259625600000, 7.987800],[1259712000000, 7.989200],[1259798400000, 7.990500],[1259884800000, 7.990000],[1259971200000, 7.984000],[1260057600000, 7.984000],[1260144000000, 7.984000],[1260230400000, 7.984000],[1260316800000, 7.984500],[1260403200000, 7.986500],[1260489600000, 7.986500],[1260576000000, 7.982800],[1260662400000, 7.982800],[1260748800000, 7.982800],[1260835200000, 7.980600],[1260921600000, 7.973200],[1261008000000, 7.970200],[1261094400000, 7.970000],[1261180800000, 7.970000],[1261267200000, 7.970000],[1261353600000, 7.970000],[1261440000000, 7.970000],[1261526400000, 7.969000],[1261612800000, 7.968000],[1261699200000, 7.966000],[1261785600000, 7.965500],[1261872000000, 7.965500],[1261958400000, 7.965500],[1262044800000, 7.965000],[1262131200000, 7.968500],[1262217600000, 7.985000]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });