$(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: [[1506816000000,0.45812],[1506902400000,0.45812],[1506988800000,0.46105],[1507075200000,0.46091],[1507161600000,0.46396],[1507248000000,0.46543],[1507334400000,0.46294],[1507420800000,0.46294],[1507507200000,0.46294],[1507593600000,0.45531],[1507680000000,0.45782],[1507766400000,0.45809],[1507852800000,0.46171],[1507939200000,0.46171],[1508025600000,0.46171],[1508112000000,0.46171],[1508198400000,0.46171],[1508284800000,0.46189],[1508371200000,0.4614],[1508457600000,0.4603],[1508544000000,0.46145],[1508630400000,0.46145],[1508716800000,0.46145],[1508803200000,null],[1508889600000,0.46314],[1508976000000,0.46464],[1509062400000,0.46442],[1509148800000,0.46271],[1509235200000,0.46271],[1509321600000,0.46271],[1509408000000,0.4636]], 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: [[1506816000000, 0.458120],[1506816000000, 0.458120],[1506902400000, 0.458120],[1506988800000, 0.461050],[1507075200000, 0.460910],[1507161600000, 0.463960],[1507248000000, 0.465430],[1507334400000, 0.462940],[1507420800000, 0.462940],[1507507200000, 0.462940],[1507593600000, 0.455310],[1507680000000, 0.457820],[1507766400000, 0.458090],[1507852800000, 0.461710],[1507939200000, 0.461710],[1508025600000, 0.461710],[1508112000000, 0.461710],[1508198400000, 0.461710],[1508284800000, 0.461890],[1508371200000, 0.461400],[1508457600000, 0.460300],[1508544000000, 0.461450],[1508630400000, 0.461450],[1508716800000, 0.461450],[1508889600000, 0.463140],[1508976000000, 0.464640],[1509062400000, 0.464420],[1509148800000, 0.462710],[1509235200000, 0.462710],[1509321600000, 0.462710],[1509408000000, 0.463600]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });