$(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: 'Курс USD, грн'}, 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: 'Курс USD', data: [[1459468800000,26.2182],[1459555200000,26.1085],[1459641600000,26.1085],[1459728000000,26.1085],[1459814400000,25.9946],[1459900800000,26.0772],[1459987200000,25.9579],[1460073600000,25.8013],[1460160000000,25.6298],[1460246400000,null],[1460332800000,null],[1460419200000,25.5706],[1460505600000,25.5531],[1460592000000,25.4835],[1460678400000,25.6476],[1460764800000,25.475],[1460851200000,25.475],[1460937600000,25.475],[1461024000000,25.4848],[1461110400000,25.4435],[1461196800000,25.4114],[1461283200000,25.3737],[1461369600000,25.3436],[1461456000000,25.3436],[1461542400000,25.3436],[1461628800000,25.3389],[1461715200000,25.3018],[1461801600000,25.2151],[1461888000000,25.1865],[1461974400000,25.2009]], 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: [[1459468800000, 26.218214],[1459468800000, 26.218214],[1459555200000, 26.108475],[1459641600000, 26.108475],[1459728000000, 26.108475],[1459814400000, 25.994632],[1459900800000, 26.077248],[1459987200000, 25.957927],[1460073600000, 25.801289],[1460160000000, 25.629848],[1460419200000, 25.570599],[1460505600000, 25.553147],[1460592000000, 25.483477],[1460678400000, 25.647640],[1460764800000, 25.475042],[1460851200000, 25.475042],[1460937600000, 25.475042],[1461024000000, 25.484764],[1461110400000, 25.443478],[1461196800000, 25.411365],[1461283200000, 25.373655],[1461369600000, 25.343646],[1461456000000, 25.343646],[1461542400000, 25.343646],[1461628800000, 25.338921],[1461715200000, 25.301814],[1461801600000, 25.215094],[1461888000000, 25.186528],[1461974400000, 25.200907]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });