$(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: 'Курс TRY, грн'}, 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: 'Курс TRY', data: [[1120262400000,3.78023],[1120348800000,3.78023],[1120435200000,3.78023],[1120521600000,3.75588],[1120608000000,3.74259],[1120694400000,3.74294],[1120780800000,3.72161],[1120867200000,3.7492],[1120953600000,3.7492],[1121040000000,3.7492],[1121126400000,3.76374],[1121212800000,3.77318],[1121299200000,3.79834],[1121385600000,3.78545],[1121472000000,3.79581],[1121558400000,3.79581],[1121644800000,3.79581],[1121731200000,3.78724],[1121817600000,3.78848],[1121904000000,3.78727],[1121990400000,3.80608],[1122076800000,3.76533],[1122163200000,3.76533],[1122249600000,3.76533],[1122336000000,3.77288],[1122422400000,3.72909],[1122508800000,3.76084],[1122595200000,3.77844],[1122681600000,3.79268],[1122768000000,3.79268]], 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: [[1120262400000, 3.780226],[1120262400000, 3.780226],[1120348800000, 3.780226],[1120435200000, 3.780226],[1120521600000, 3.755883],[1120608000000, 3.742590],[1120694400000, 3.742943],[1120780800000, 3.721608],[1120867200000, 3.749204],[1120953600000, 3.749204],[1121040000000, 3.749204],[1121126400000, 3.763741],[1121212800000, 3.773184],[1121299200000, 3.798342],[1121385600000, 3.785447],[1121472000000, 3.795809],[1121558400000, 3.795809],[1121644800000, 3.795809],[1121731200000, 3.787244],[1121817600000, 3.788479],[1121904000000, 3.787265],[1121990400000, 3.806082],[1122076800000, 3.765329],[1122163200000, 3.765329],[1122249600000, 3.765329],[1122336000000, 3.772881],[1122422400000, 3.729092],[1122508800000, 3.760839],[1122595200000, 3.778444],[1122681600000, 3.792675],[1122768000000, 3.792675]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });