$(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: 'Курс SEK, грн'}, 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: 'Курс SEK', data: [[1283299200000,1.06511],[1283385600000,1.07971],[1283472000000,1.08638],[1283558400000,1.0898],[1283644800000,1.0898],[1283731200000,1.0898],[1283817600000,1.09458],[1283904000000,1.08153],[1283990400000,1.08306],[1284076800000,1.0872],[1284163200000,1.0936],[1284249600000,1.0936],[1284336000000,1.0936],[1284422400000,1.10227],[1284508800000,1.10285],[1284595200000,1.11868],[1284681600000,1.12353],[1284768000000,1.12059],[1284854400000,1.12059],[1284940800000,1.12059],[1285027200000,1.12809],[1285113600000,1.13603],[1285200000000,1.15947],[1285286400000,1.14571],[1285372800000,1.15218],[1285459200000,1.15218],[1285545600000,1.15218],[1285632000000,1.16291],[1285718400000,1.15477],[1285804800000,1.17659]], 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.065112],[1283299200000, 1.065112],[1283385600000, 1.079710],[1283472000000, 1.086377],[1283558400000, 1.089797],[1283644800000, 1.089797],[1283731200000, 1.089797],[1283817600000, 1.094580],[1283904000000, 1.081527],[1283990400000, 1.083059],[1284076800000, 1.087198],[1284163200000, 1.093599],[1284249600000, 1.093599],[1284336000000, 1.093599],[1284422400000, 1.102274],[1284508800000, 1.102849],[1284595200000, 1.118679],[1284681600000, 1.123533],[1284768000000, 1.120589],[1284854400000, 1.120589],[1284940800000, 1.120589],[1285027200000, 1.128085],[1285113600000, 1.136027],[1285200000000, 1.159474],[1285286400000, 1.145714],[1285372800000, 1.152176],[1285459200000, 1.152176],[1285545600000, 1.152176],[1285632000000, 1.162907],[1285718400000, 1.154767],[1285804800000, 1.176587]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });