$(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: [[1283299200000,1.24622],[1283385600000,1.27091],[1283472000000,1.28128],[1283558400000,1.28652],[1283644800000,1.28652],[1283731200000,1.28652],[1283817600000,1.29201],[1283904000000,1.27718],[1283990400000,1.27408],[1284076800000,1.27727],[1284163200000,1.2777],[1284249600000,1.2777],[1284336000000,1.2777],[1284422400000,1.28926],[1284508800000,1.29156],[1284595200000,1.30255],[1284681600000,1.30183],[1284768000000,1.29849],[1284854400000,1.29849],[1284940800000,1.29849],[1285027200000,1.30168],[1285113600000,1.3103],[1285200000000,1.34024],[1285286400000,1.33174],[1285372800000,1.33477],[1285459200000,1.33477],[1285545600000,1.33477],[1285632000000,1.34753],[1285718400000,1.33696],[1285804800000,1.35196]], 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: [[1283299200000, 1.246225],[1283299200000, 1.246225],[1283385600000, 1.270911],[1283472000000, 1.281281],[1283558400000, 1.286523],[1283644800000, 1.286523],[1283731200000, 1.286523],[1283817600000, 1.292007],[1283904000000, 1.277178],[1283990400000, 1.274082],[1284076800000, 1.277266],[1284163200000, 1.277702],[1284249600000, 1.277702],[1284336000000, 1.277702],[1284422400000, 1.289262],[1284508800000, 1.291557],[1284595200000, 1.302551],[1284681600000, 1.301833],[1284768000000, 1.298490],[1284854400000, 1.298490],[1284940800000, 1.298490],[1285027200000, 1.301680],[1285113600000, 1.310296],[1285200000000, 1.340242],[1285286400000, 1.331745],[1285372800000, 1.334770],[1285459200000, 1.334770],[1285545600000, 1.334770],[1285632000000, 1.347530],[1285718400000, 1.336961],[1285804800000, 1.351960]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });