$(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: 'Курс XDR, грн'}, 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: 'Курс XDR', data: [[1372636800000,12.0196],[1372723200000,12.0071],[1372809600000,11.9982],[1372896000000,11.9805],[1372982400000,11.9805],[1373068800000,11.9805],[1373155200000,11.9805],[1373241600000,11.9805],[1373328000000,11.8993],[1373414400000,11.8979],[1373500800000,11.8974],[1373587200000,12.0042],[1373673600000,11.9992],[1373760000000,11.9992],[1373846400000,11.9992],[1373932800000,11.9803],[1374019200000,12.0222],[1374105600000,12.0411],[1374192000000,12.0208],[1374278400000,12.0255],[1374364800000,12.0255],[1374451200000,null],[1374537600000,12.0608],[1374624000000,12.0576],[1374710400000,12.0792],[1374796800000,12.0625],[1374883200000,12.1106],[1374969600000,12.1106],[1375056000000,12.1106],[1375142400000,12.1223],[1375228800000,12.1073]], 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, 12.019585],[1372636800000, 12.019585],[1372723200000, 12.007072],[1372809600000, 11.998151],[1372896000000, 11.980545],[1372982400000, 11.980545],[1373068800000, 11.980545],[1373155200000, 11.980545],[1373241600000, 11.980545],[1373328000000, 11.899250],[1373414400000, 11.897922],[1373500800000, 11.897355],[1373587200000, 12.004223],[1373673600000, 11.999249],[1373760000000, 11.999249],[1373846400000, 11.999249],[1373932800000, 11.980311],[1374019200000, 12.022243],[1374105600000, 12.041078],[1374192000000, 12.020760],[1374278400000, 12.025516],[1374364800000, 12.025516],[1374537600000, 12.060810],[1374624000000, 12.057553],[1374710400000, 12.079182],[1374796800000, 12.062484],[1374883200000, 12.110606],[1374969600000, 12.110606],[1375056000000, 12.110606],[1375142400000, 12.122343],[1375228800000, 12.107286]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });