$(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: 'Курс RUB, грн'}, 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: 'Курс RUB', data: [[1396310400000,0.30889],[1396396800000,0.3171],[1396483200000,0.3189],[1396569600000,0.31601],[1396656000000,0.32665],[1396742400000,0.32665],[1396828800000,0.32665],[1396915200000,0.32819],[1397001600000,0.33067],[1397088000000,0.33416],[1397174400000,0.35296],[1397260800000,0.35348],[1397347200000,0.35348],[1397433600000,0.35348],[1397520000000,0.36428],[1397606400000,0.34415],[1397692800000,0.31688],[1397779200000,0.31185],[1397865600000,0.31249],[1397952000000,0.31249],[1398038400000,0.31249],[1398124800000,0.31249],[1398211200000,0.31533],[1398297600000,0.32268],[1398384000000,0.31923],[1398470400000,0.31901],[1398556800000,0.31901],[1398643200000,0.31901],[1398729600000,0.3161],[1398816000000,0.31668]], 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: [[1396310400000, 0.308890],[1396310400000, 0.308890],[1396396800000, 0.317100],[1396483200000, 0.318900],[1396569600000, 0.316010],[1396656000000, 0.326650],[1396742400000, 0.326650],[1396828800000, 0.326650],[1396915200000, 0.328190],[1397001600000, 0.330670],[1397088000000, 0.334160],[1397174400000, 0.352960],[1397260800000, 0.353480],[1397347200000, 0.353480],[1397433600000, 0.353480],[1397520000000, 0.364280],[1397606400000, 0.344150],[1397692800000, 0.316880],[1397779200000, 0.311850],[1397865600000, 0.312490],[1397952000000, 0.312490],[1398038400000, 0.312490],[1398124800000, 0.312490],[1398211200000, 0.315330],[1398297600000, 0.322680],[1398384000000, 0.319230],[1398470400000, 0.319010],[1398556800000, 0.319010],[1398643200000, 0.319010],[1398729600000, 0.316100],[1398816000000, 0.316680]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });