$(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: 'Курс SEK, грн'}, 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: 'Курс SEK', data: [[1301616000000,1.26597],[1301702400000,1.25934],[1301788800000,1.25934],[1301875200000,1.25934],[1301961600000,1.26151],[1302048000000,1.25511],[1302134400000,1.26376],[1302220800000,1.25764],[1302307200000,1.27593],[1302393600000,1.27593],[1302480000000,1.27593],[1302566400000,1.27544],[1302652800000,1.26939],[1302739200000,1.27906],[1302825600000,1.2707],[1302912000000,1.28403],[1302998400000,1.28403],[1303084800000,1.28403],[1303171200000,1.27317],[1303257600000,1.277],[1303344000000,1.29892],[1303430400000,1.30694],[1303516800000,1.30694],[1303603200000,1.30694],[1303689600000,1.30694],[1303776000000,1.30694],[1303862400000,1.30444],[1303948800000,1.30742],[1304035200000,1.31989],[1304121600000,1.32785]], 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, 1.265969],[1301616000000, 1.265969],[1301702400000, 1.259340],[1301788800000, 1.259340],[1301875200000, 1.259340],[1301961600000, 1.261511],[1302048000000, 1.255108],[1302134400000, 1.263761],[1302220800000, 1.257640],[1302307200000, 1.275929],[1302393600000, 1.275929],[1302480000000, 1.275929],[1302566400000, 1.275445],[1302652800000, 1.269387],[1302739200000, 1.279059],[1302825600000, 1.270704],[1302912000000, 1.284029],[1302998400000, 1.284029],[1303084800000, 1.284029],[1303171200000, 1.273170],[1303257600000, 1.277000],[1303344000000, 1.298916],[1303430400000, 1.306940],[1303516800000, 1.306940],[1303603200000, 1.306940],[1303689600000, 1.306940],[1303776000000, 1.306940],[1303862400000, 1.304438],[1303948800000, 1.307422],[1304035200000, 1.319894],[1304121600000, 1.327848]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });