$(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: [[1485907200000,33.8239],[1485993600000,34.1046],[1486080000000,33.8889],[1486166400000,33.814],[1486252800000,33.814],[1486339200000,33.814],[1486425600000,33.9777],[1486512000000,33.4259],[1486598400000,33.6426],[1486684800000,33.9585],[1486771200000,33.9057],[1486857600000,33.9057],[1486944000000,33.9057],[1487030400000,34.0132],[1487116800000,33.9925],[1487203200000,33.5205],[1487289600000,33.7779],[1487376000000,33.5777],[1487462400000,33.5777],[1487548800000,33.5777],[1487635200000,33.6955],[1487721600000,33.5785],[1487808000000,33.5779],[1487894400000,33.6154],[1487980800000,33.868],[1488067200000,33.868],[1488153600000,33.868],[1488240000000,33.5855]], 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: [[1485907200000, 33.823866],[1485907200000, 33.823866],[1485993600000, 34.104608],[1486080000000, 33.888933],[1486166400000, 33.814020],[1486252800000, 33.814020],[1486339200000, 33.814020],[1486425600000, 33.977707],[1486512000000, 33.425862],[1486598400000, 33.642595],[1486684800000, 33.958494],[1486771200000, 33.905666],[1486857600000, 33.905666],[1486944000000, 33.905666],[1487030400000, 34.013188],[1487116800000, 33.992479],[1487203200000, 33.520492],[1487289600000, 33.777871],[1487376000000, 33.577738],[1487462400000, 33.577738],[1487548800000, 33.577738],[1487635200000, 33.695528],[1487721600000, 33.578506],[1487808000000, 33.577949],[1487894400000, 33.615371],[1487980800000, 33.867960],[1488067200000, 33.867960],[1488153600000, 33.867960],[1488240000000, 33.585510]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });