$(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: [[1328054400000,1.37503],[1328140800000,1.37529],[1328227200000,1.3679],[1328313600000,1.37552],[1328400000000,1.37552],[1328486400000,1.37552],[1328572800000,1.37243],[1328659200000,1.37447],[1328745600000,1.39019],[1328832000000,1.39148],[1328918400000,1.38329],[1329004800000,1.38329],[1329091200000,1.38329],[1329177600000,1.39835],[1329264000000,1.39609],[1329350400000,1.38912],[1329436800000,1.37315],[1329523200000,1.40204],[1329609600000,1.40204],[1329696000000,1.40204],[1329782400000,1.41509],[1329868800000,1.40438],[1329955200000,1.40892],[1330041600000,1.42186],[1330128000000,1.43236],[1330214400000,1.43236],[1330300800000,1.43236],[1330387200000,1.42616],[1330473600000,1.43654]], 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: [[1328054400000, 1.375030],[1328054400000, 1.375030],[1328140800000, 1.375285],[1328227200000, 1.367902],[1328313600000, 1.375516],[1328400000000, 1.375516],[1328486400000, 1.375516],[1328572800000, 1.372429],[1328659200000, 1.374469],[1328745600000, 1.390194],[1328832000000, 1.391478],[1328918400000, 1.383287],[1329004800000, 1.383287],[1329091200000, 1.383287],[1329177600000, 1.398349],[1329264000000, 1.396089],[1329350400000, 1.389124],[1329436800000, 1.373154],[1329523200000, 1.402041],[1329609600000, 1.402041],[1329696000000, 1.402041],[1329782400000, 1.415093],[1329868800000, 1.404380],[1329955200000, 1.408924],[1330041600000, 1.421859],[1330128000000, 1.432359],[1330214400000, 1.432359],[1330300800000, 1.432359],[1330387200000, 1.426155],[1330473600000, 1.436538]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });