$(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: 'Курс NOK, грн'}, 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: 'Курс NOK', data: [[1301616000000,1.44373],[1301702400000,1.44209],[1301788800000,1.44209],[1301875200000,1.44209],[1301961600000,1.44984],[1302048000000,1.44818],[1302134400000,1.46301],[1302220800000,1.45519],[1302307200000,1.47013],[1302393600000,1.47013],[1302480000000,1.47013],[1302566400000,1.47135],[1302652800000,1.46361],[1302739200000,1.46908],[1302825600000,1.46011],[1302912000000,1.47446],[1302998400000,1.47446],[1303084800000,1.47446],[1303171200000,1.46071],[1303257600000,1.46739],[1303344000000,1.48428],[1303430400000,1.49235],[1303516800000,1.49235],[1303603200000,1.49235],[1303689600000,1.49235],[1303776000000,1.49235],[1303862400000,1.49653],[1303948800000,1.50012],[1304035200000,1.50903],[1304121600000,1.521]], 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.443734],[1301616000000, 1.443734],[1301702400000, 1.442090],[1301788800000, 1.442090],[1301875200000, 1.442090],[1301961600000, 1.449838],[1302048000000, 1.448183],[1302134400000, 1.463008],[1302220800000, 1.455194],[1302307200000, 1.470131],[1302393600000, 1.470131],[1302480000000, 1.470131],[1302566400000, 1.471353],[1302652800000, 1.463606],[1302739200000, 1.469080],[1302825600000, 1.460113],[1302912000000, 1.474463],[1302998400000, 1.474463],[1303084800000, 1.474463],[1303171200000, 1.460713],[1303257600000, 1.467394],[1303344000000, 1.484277],[1303430400000, 1.492349],[1303516800000, 1.492349],[1303603200000, 1.492349],[1303689600000, 1.492349],[1303776000000, 1.492349],[1303862400000, 1.496533],[1303948800000, 1.500115],[1304035200000, 1.509030],[1304121600000, 1.521002]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });