$(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: 'Курс LVL, грн'}, 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: 'Курс LVL', data: [[1120262400000,8.67067],[1120348800000,8.67067],[1120435200000,8.67067],[1120521600000,8.58234],[1120608000000,8.5678],[1120694400000,8.5678],[1120780800000,8.58234],[1120867200000,8.58234],[1120953600000,8.58234],[1121040000000,8.58234],[1121126400000,8.64103],[1121212800000,8.74568],[1121299200000,8.77604],[1121385600000,8.67067],[1121472000000,8.70052],[1121558400000,8.70052],[1121644800000,8.70052],[1121731200000,8.67067],[1121817600000,8.64103],[1121904000000,8.67698],[1121990400000,8.73702],[1122076800000,8.75217],[1122163200000,8.75217],[1122249600000,8.75217],[1122336000000,8.66209],[1122422400000,8.64726],[1122508800000,8.63248],[1122595200000,8.67698],[1122681600000,8.67698],[1122768000000,8.67698]], 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, 8.670669],[1120262400000, 8.670669],[1120348800000, 8.670669],[1120435200000, 8.670669],[1120521600000, 8.582343],[1120608000000, 8.567797],[1120694400000, 8.567797],[1120780800000, 8.582343],[1120867200000, 8.582343],[1120953600000, 8.582343],[1121040000000, 8.582343],[1121126400000, 8.641026],[1121212800000, 8.745675],[1121299200000, 8.776042],[1121385600000, 8.670669],[1121472000000, 8.700516],[1121558400000, 8.700516],[1121644800000, 8.700516],[1121731200000, 8.670669],[1121817600000, 8.641026],[1121904000000, 8.676976],[1121990400000, 8.737024],[1122076800000, 8.752166],[1122163200000, 8.752166],[1122249600000, 8.752166],[1122336000000, 8.662093],[1122422400000, 8.647260],[1122508800000, 8.632479],[1122595200000, 8.676976],[1122681600000, 8.676976],[1122768000000, 8.676976]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });