$(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: [[1259625600000,1.4097],[1259712000000,1.42007],[1259798400000,1.43186],[1259884800000,1.43155],[1259971200000,1.417],[1260057600000,1.417],[1260144000000,1.417],[1260230400000,1.39427],[1260316800000,1.38919],[1260403200000,1.39332],[1260489600000,1.3946],[1260576000000,1.39518],[1260662400000,1.39518],[1260748800000,1.39518],[1260835200000,1.38031],[1260921600000,1.36825],[1261008000000,1.38654],[1261094400000,1.36007],[1261180800000,1.36104],[1261267200000,1.36104],[1261353600000,1.36104],[1261440000000,1.37108],[1261526400000,1.3603],[1261612800000,1.36188],[1261699200000,1.37581],[1261785600000,1.37572],[1261872000000,1.37572],[1261958400000,1.37572],[1262044800000,1.37507],[1262131200000,1.38091],[1262217600000,1.37574]], 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, 1.409700],[1259625600000, 1.409700],[1259712000000, 1.420072],[1259798400000, 1.431857],[1259884800000, 1.431554],[1259971200000, 1.416995],[1260057600000, 1.416995],[1260144000000, 1.416995],[1260230400000, 1.394265],[1260316800000, 1.389189],[1260403200000, 1.393321],[1260489600000, 1.394596],[1260576000000, 1.395182],[1260662400000, 1.395182],[1260748800000, 1.395182],[1260835200000, 1.380313],[1260921600000, 1.368246],[1261008000000, 1.386536],[1261094400000, 1.360068],[1261180800000, 1.361037],[1261267200000, 1.361037],[1261353600000, 1.361037],[1261440000000, 1.371084],[1261526400000, 1.360303],[1261612800000, 1.361882],[1261699200000, 1.375811],[1261785600000, 1.375724],[1261872000000, 1.375724],[1261958400000, 1.375724],[1262044800000, 1.375070],[1262131200000, 1.380913],[1262217600000, 1.375738]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });