$(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: 'Курс SGD, грн'}, 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: 'Курс SGD', data: [[1430438400000,15.9973],[1430524800000,15.9973],[1430611200000,15.9973],[1430697600000,15.9973],[1430784000000,15.9973],[1430870400000,15.8078],[1430956800000,15.8478],[1431043200000,15.567],[1431129600000,15.4821],[1431216000000,15.4821],[1431302400000,15.4821],[1431388800000,15.4821],[1431475200000,15.4496],[1431561600000,15.475],[1431648000000,15.6036],[1431734400000,15.6074],[1431820800000,15.6074],[1431907200000,15.6074],[1431993600000,16.7315],[1432080000000,15.9626],[1432166400000,15.5811],[1432252800000,15.4768],[1432339200000,15.6669],[1432425600000,15.6669],[1432512000000,15.6669],[1432598400000,15.7527],[1432684800000,15.9157],[1432771200000,null],[1432857600000,15.5771],[1432944000000,15.6295],[1433030400000,15.6295]], 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, 15.997287],[1430438400000, 15.997287],[1430524800000, 15.997287],[1430611200000, 15.997287],[1430697600000, 15.997287],[1430784000000, 15.997287],[1430870400000, 15.807847],[1430956800000, 15.847802],[1431043200000, 15.566975],[1431129600000, 15.482064],[1431216000000, 15.482064],[1431302400000, 15.482064],[1431388800000, 15.482064],[1431475200000, 15.449646],[1431561600000, 15.474980],[1431648000000, 15.603615],[1431734400000, 15.607381],[1431820800000, 15.607381],[1431907200000, 15.607381],[1431993600000, 16.731499],[1432080000000, 15.962637],[1432166400000, 15.581118],[1432252800000, 15.476799],[1432339200000, 15.666933],[1432425600000, 15.666933],[1432512000000, 15.666933],[1432598400000, 15.752681],[1432684800000, 15.915745],[1432857600000, 15.577089],[1432944000000, 15.629517],[1433030400000, 15.629517]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });