$(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: 'Курс AZN, грн'}, 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: 'Курс AZN', data: [[1301616000000,10.0416],[1301702400000,10.0429],[1301788800000,10.0429],[1301875200000,10.0429],[1301961600000,10.0459],[1302048000000,10.0488],[1302134400000,10.0514],[1302220800000,10.0526],[1302307200000,10.0526],[1302393600000,10.0526],[1302480000000,10.0526],[1302566400000,10.054],[1302652800000,10.0598],[1302739200000,10.0622],[1302825600000,10.0621],[1302912000000,10.0634],[1302998400000,10.0634],[1303084800000,10.0634],[1303171200000,10.0659],[1303257600000,10.0599],[1303344000000,10.0599],[1303430400000,10.0611],[1303516800000,10.0611],[1303603200000,10.0611],[1303689600000,10.0611],[1303776000000,10.0611],[1303862400000,10.0637],[1303948800000,10.0649],[1304035200000,10.0649],[1304121600000,10.0623]], 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: [[1301616000000, 10.041630],[1301616000000, 10.041630],[1301702400000, 10.042897],[1301788800000, 10.042897],[1301875200000, 10.042897],[1301961600000, 10.045925],[1302048000000, 10.048827],[1302134400000, 10.051363],[1302220800000, 10.052632],[1302307200000, 10.052632],[1302393600000, 10.052632],[1302480000000, 10.052632],[1302566400000, 10.054034],[1302652800000, 10.059848],[1302739200000, 10.062247],[1302825600000, 10.062137],[1302912000000, 10.063408],[1302998400000, 10.063408],[1303084800000, 10.063408],[1303171200000, 10.065934],[1303257600000, 10.059864],[1303344000000, 10.059864],[1303430400000, 10.061134],[1303516800000, 10.061134],[1303603200000, 10.061134],[1303689600000, 10.061134],[1303776000000, 10.061134],[1303862400000, 10.063677],[1303948800000, 10.064948],[1304035200000, 10.064948],[1304121600000, 10.062279]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });