$(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: 'Курс CHF, грн'}, 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: 'Курс CHF', data: [[1459468800000,27.3071],[1459555200000,27.2677],[1459641600000,27.2677],[1459728000000,27.2677],[1459814400000,27.0921],[1459900800000,27.2145],[1459987200000,27.0285],[1460073600000,26.9392],[1460160000000,26.7824],[1460246400000,null],[1460332800000,null],[1460419200000,26.7766],[1460505600000,26.7798],[1460592000000,26.4455],[1460678400000,26.5294],[1460764800000,26.3266],[1460851200000,26.3266],[1460937600000,26.3266],[1461024000000,26.3953],[1461110400000,26.4242],[1461196800000,26.4335],[1461283200000,26.2188],[1461369600000,25.9708],[1461456000000,25.9708],[1461542400000,25.9708],[1461628800000,26.0109],[1461715200000,25.962],[1461801600000,25.9144],[1461888000000,26.0678],[1461974400000,26.1622]], 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, 27.307142],[1459468800000, 27.307142],[1459555200000, 27.267686],[1459641600000, 27.267686],[1459728000000, 27.267686],[1459814400000, 27.092125],[1459900800000, 27.214476],[1459987200000, 27.028480],[1460073600000, 26.939163],[1460160000000, 26.782413],[1460419200000, 26.776604],[1460505600000, 26.779811],[1460592000000, 26.445515],[1460678400000, 26.529440],[1460764800000, 26.326621],[1460851200000, 26.326621],[1460937600000, 26.326621],[1461024000000, 26.395268],[1461110400000, 26.424224],[1461196800000, 26.433488],[1461283200000, 26.218751],[1461369600000, 25.970838],[1461456000000, 25.970838],[1461542400000, 25.970838],[1461628800000, 26.010900],[1461715200000, 25.961961],[1461801600000, 25.914367],[1461888000000, 26.067850],[1461974400000, 26.162231]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });