$(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: [[1459468800000,37.7101],[1459555200000,37.3604],[1459641600000,37.3604],[1459728000000,37.3604],[1459814400000,37.0989],[1459900800000,36.9786],[1459987200000,36.4146],[1460073600000,36.3202],[1460160000000,36.0748],[1460246400000,null],[1460332800000,null],[1460419200000,36.3789],[1460505600000,36.4734],[1460592000000,36.2665],[1460678400000,36.2729],[1460764800000,36.1245],[1460851200000,36.1245],[1460937600000,36.1245],[1461024000000,36.1157],[1461110400000,36.5439],[1461196800000,36.5557],[1461283200000,36.6129],[1461369600000,36.4391],[1461456000000,36.4391],[1461542400000,36.4391],[1461628800000,36.7617],[1461715200000,36.8573],[1461801600000,36.7869],[1461888000000,36.7518],[1461974400000,36.83]], 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, 37.710109],[1459468800000, 37.710109],[1459555200000, 37.360381],[1459641600000, 37.360381],[1459728000000, 37.360381],[1459814400000, 37.098863],[1459900800000, 36.978553],[1459987200000, 36.414595],[1460073600000, 36.320217],[1460160000000, 36.074813],[1460419200000, 36.378856],[1460505600000, 36.473405],[1460592000000, 36.266479],[1460678400000, 36.272907],[1460764800000, 36.124458],[1460851200000, 36.124458],[1460937600000, 36.124458],[1461024000000, 36.115661],[1461110400000, 36.543890],[1461196800000, 36.555742],[1461283200000, 36.612895],[1461369600000, 36.439074],[1461456000000, 36.439074],[1461542400000, 36.439074],[1461628800000, 36.761670],[1461715200000, 36.857320],[1461801600000, 36.786861],[1461888000000, 36.751790],[1461974400000, 36.829983]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });