$(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: 'Курс GBP, грн'}, 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: 'Курс GBP', data: [[1430438400000,32.6132],[1430524800000,32.6132],[1430611200000,32.6132],[1430697600000,32.6132],[1430784000000,32.6132],[1430870400000,31.9641],[1430956800000,32.0114],[1431043200000,31.5512],[1431129600000,31.7361],[1431216000000,31.7361],[1431302400000,31.7361],[1431388800000,31.7361],[1431475200000,32.3765],[1431561600000,32.1752],[1431648000000,32.4825],[1431734400000,32.5156],[1431820800000,32.5156],[1431907200000,32.5156],[1431993600000,34.6505],[1432080000000,32.916],[1432166400000,32.3313],[1432252800000,32.4296],[1432339200000,32.5893],[1432425600000,32.5893],[1432512000000,32.5893],[1432598400000,32.5029],[1432684800000,32.9866],[1432771200000,null],[1432857600000,32.1928],[1432944000000,32.1698],[1433030400000,32.1698]], 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: [[1430438400000, 32.613157],[1430438400000, 32.613157],[1430524800000, 32.613157],[1430611200000, 32.613157],[1430697600000, 32.613157],[1430784000000, 32.613157],[1430870400000, 31.964111],[1430956800000, 32.011442],[1431043200000, 31.551166],[1431129600000, 31.736105],[1431216000000, 31.736105],[1431302400000, 31.736105],[1431388800000, 31.736105],[1431475200000, 32.376541],[1431561600000, 32.175188],[1431648000000, 32.482535],[1431734400000, 32.515558],[1431820800000, 32.515558],[1431907200000, 32.515558],[1431993600000, 34.650542],[1432080000000, 32.915958],[1432166400000, 32.331309],[1432252800000, 32.429551],[1432339200000, 32.589329],[1432425600000, 32.589329],[1432512000000, 32.589329],[1432598400000, 32.502870],[1432684800000, 32.986592],[1432857600000, 32.192796],[1432944000000, 32.169850],[1433030400000, 32.169850]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });