$(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: [[1291161600000,1.27522],[1291248000000,1.29165],[1291334400000,1.29591],[1291420800000,1.31418],[1291507200000,1.31418],[1291593600000,1.31418],[1291680000000,1.32472],[1291766400000,1.33395],[1291852800000,1.31816],[1291939200000,1.3208],[1292025600000,1.327],[1292112000000,1.327],[1292198400000,1.327],[1292284800000,1.33115],[1292371200000,1.35492],[1292457600000,1.35249],[1292544000000,1.33529],[1292630400000,1.33793],[1292716800000,1.33793],[1292803200000,1.33793],[1292889600000,1.33193],[1292976000000,1.33248],[1293062400000,1.32652],[1293148800000,1.32749],[1293235200000,1.33258],[1293321600000,1.33258],[1293408000000,1.33258],[1293494400000,1.33474],[1293580800000,1.34236],[1293667200000,1.33893],[1293753600000,1.35224]], 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: [[1291161600000, 1.275221],[1291161600000, 1.275221],[1291248000000, 1.291649],[1291334400000, 1.295914],[1291420800000, 1.314175],[1291507200000, 1.314175],[1291593600000, 1.314175],[1291680000000, 1.324721],[1291766400000, 1.333951],[1291852800000, 1.318160],[1291939200000, 1.320802],[1292025600000, 1.327003],[1292112000000, 1.327003],[1292198400000, 1.327003],[1292284800000, 1.331152],[1292371200000, 1.354917],[1292457600000, 1.352492],[1292544000000, 1.335286],[1292630400000, 1.337929],[1292716800000, 1.337929],[1292803200000, 1.337929],[1292889600000, 1.331927],[1292976000000, 1.332483],[1293062400000, 1.326525],[1293148800000, 1.327487],[1293235200000, 1.332580],[1293321600000, 1.332580],[1293408000000, 1.332580],[1293494400000, 1.334742],[1293580800000, 1.342364],[1293667200000, 1.338933],[1293753600000, 1.352237]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });