$(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: [[1270080000000,1.33301],[1270166400000,1.33138],[1270252800000,1.33138],[1270339200000,1.33138],[1270425600000,1.33138],[1270512000000,1.33138],[1270598400000,1.32499],[1270684800000,1.32717],[1270771200000,1.32555],[1270857600000,1.33671],[1270944000000,1.33671],[1271030400000,1.33671],[1271116800000,1.34459],[1271203200000,1.3468],[1271289600000,1.34972],[1271376000000,1.34994],[1271462400000,1.34853],[1271548800000,1.34853],[1271635200000,1.34853],[1271721600000,1.33359],[1271808000000,1.34488],[1271894400000,1.34247],[1271980800000,1.33834],[1272067200000,1.33943],[1272153600000,1.33943],[1272240000000,1.33943],[1272326400000,1.34493],[1272412800000,1.34288],[1272499200000,1.33306],[1272585600000,1.33961]], 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: [[1270080000000, 1.333014],[1270080000000, 1.333014],[1270166400000, 1.331378],[1270252800000, 1.331378],[1270339200000, 1.331378],[1270425600000, 1.331378],[1270512000000, 1.331378],[1270598400000, 1.324988],[1270684800000, 1.327167],[1270771200000, 1.325553],[1270857600000, 1.336714],[1270944000000, 1.336714],[1271030400000, 1.336714],[1271116800000, 1.344590],[1271203200000, 1.346797],[1271289600000, 1.349716],[1271376000000, 1.349938],[1271462400000, 1.348532],[1271548800000, 1.348532],[1271635200000, 1.348532],[1271721600000, 1.333592],[1271808000000, 1.344884],[1271894400000, 1.342466],[1271980800000, 1.338341],[1272067200000, 1.339432],[1272153600000, 1.339432],[1272240000000, 1.339432],[1272326400000, 1.344928],[1272412800000, 1.342876],[1272499200000, 1.333061],[1272585600000, 1.339612]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });