$(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: [[1372636800000,0.24312],[1372723200000,0.24331],[1372809600000,0.2426],[1372896000000,0.24061],[1372982400000,0.24104],[1373068800000,0.24057],[1373155200000,0.24057],[1373241600000,0.24057],[1373328000000,0.23988],[1373414400000,0.2416],[1373500800000,0.24287],[1373587200000,0.24528],[1373673600000,0.24486],[1373760000000,0.24486],[1373846400000,0.24486],[1373932800000,0.24502],[1374019200000,0.24562],[1374105600000,0.2463],[1374192000000,0.2467],[1374278400000,0.24648],[1374364800000,0.24648],[1374451200000,null],[1374537600000,0.24728],[1374624000000,0.24738],[1374710400000,0.24711],[1374796800000,0.24565],[1374883200000,0.24491],[1374969600000,0.24491],[1375056000000,0.24491],[1375142400000,0.24328],[1375228800000,0.24302]], 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: [[1372636800000, 0.243120],[1372636800000, 0.243120],[1372723200000, 0.243310],[1372809600000, 0.242600],[1372896000000, 0.240610],[1372982400000, 0.241040],[1373068800000, 0.240570],[1373155200000, 0.240570],[1373241600000, 0.240570],[1373328000000, 0.239880],[1373414400000, 0.241600],[1373500800000, 0.242870],[1373587200000, 0.245280],[1373673600000, 0.244860],[1373760000000, 0.244860],[1373846400000, 0.244860],[1373932800000, 0.245020],[1374019200000, 0.245620],[1374105600000, 0.246300],[1374192000000, 0.246700],[1374278400000, 0.246480],[1374364800000, 0.246480],[1374537600000, 0.247280],[1374624000000, 0.247380],[1374710400000, 0.247110],[1374796800000, 0.245650],[1374883200000, 0.244910],[1374969600000, 0.244910],[1375056000000, 0.244910],[1375142400000, 0.243280],[1375228800000, 0.243020]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });