$(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: 'Курс BYN, грн'}, 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: 'Курс BYN', data: [[1259625600000,0.00287],[1259712000000,0.00287],[1259798400000,0.00287],[1259884800000,0.00287],[1259971200000,0.00286],[1260057600000,0.00286],[1260144000000,0.00286],[1260230400000,0.00284],[1260316800000,0.00282],[1260403200000,0.00279],[1260489600000,0.0028],[1260576000000,0.00281],[1260662400000,0.00281],[1260748800000,0.00281],[1260835200000,0.00281],[1260921600000,0.0028],[1261008000000,0.00279],[1261094400000,0.00278],[1261180800000,0.00277],[1261267200000,0.00277],[1261353600000,0.00277],[1261440000000,0.00277],[1261526400000,0.00277],[1261612800000,0.00277],[1261699200000,0.00279],[1261785600000,0.00279],[1261872000000,0.00279],[1261958400000,0.00279],[1262044800000,0.0028],[1262131200000,0.0028],[1262217600000,0.00279]], 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, 0.002870],[1259625600000, 0.002870],[1259712000000, 0.002870],[1259798400000, 0.002870],[1259884800000, 0.002870],[1259971200000, 0.002860],[1260057600000, 0.002860],[1260144000000, 0.002860],[1260230400000, 0.002840],[1260316800000, 0.002820],[1260403200000, 0.002790],[1260489600000, 0.002800],[1260576000000, 0.002810],[1260662400000, 0.002810],[1260748800000, 0.002810],[1260835200000, 0.002810],[1260921600000, 0.002800],[1261008000000, 0.002790],[1261094400000, 0.002780],[1261180800000, 0.002770],[1261267200000, 0.002770],[1261353600000, 0.002770],[1261440000000, 0.002770],[1261526400000, 0.002770],[1261612800000, 0.002770],[1261699200000, 0.002790],[1261785600000, 0.002790],[1261872000000, 0.002790],[1261958400000, 0.002790],[1262044800000, 0.002800],[1262131200000, 0.002800],[1262217600000, 0.002790]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });