$(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: [[1243814400000,15.1425],[1243900800000,15.2575],[1243987200000,15.2745],[1244073600000,15.2425],[1244160000000,15.1265],[1244246400000,15.212],[1244332800000,15.212],[1244419200000,15.212],[1244505600000,15.212],[1244592000000,15.1865],[1244678400000,15.3418],[1244764800000,15.2413],[1244851200000,15.3015],[1244937600000,15.3015],[1245024000000,15.3015],[1245110400000,14.9848],[1245196800000,15.1032],[1245283200000,15.0962],[1245369600000,15.1911],[1245456000000,15.2139],[1245542400000,15.2139],[1245628800000,15.2139],[1245715200000,15.1311],[1245801600000,15.2637],[1245888000000,15.3443],[1245974400000,15.2723],[1246060800000,15.3872],[1246147200000,15.3872],[1246233600000,15.3872],[1246320000000,15.3872]], 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: [[1243814400000, 15.142480],[1243814400000, 15.142480],[1243900800000, 15.257481],[1243987200000, 15.274494],[1244073600000, 15.242531],[1244160000000, 15.126540],[1244246400000, 15.211997],[1244332800000, 15.211997],[1244419200000, 15.211997],[1244505600000, 15.211997],[1244592000000, 15.186474],[1244678400000, 15.341847],[1244764800000, 15.241331],[1244851200000, 15.301471],[1244937600000, 15.301471],[1245024000000, 15.301471],[1245110400000, 14.984775],[1245196800000, 15.103192],[1245283200000, 15.096200],[1245369600000, 15.191147],[1245456000000, 15.213944],[1245542400000, 15.213944],[1245628800000, 15.213944],[1245715200000, 15.131067],[1245801600000, 15.263695],[1245888000000, 15.344345],[1245974400000, 15.272338],[1246060800000, 15.387226],[1246147200000, 15.387226],[1246233600000, 15.387226],[1246320000000, 15.387226]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });