$(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: [[1467331200000,33.3509],[1467417600000,32.9699],[1467504000000,32.9699],[1467590400000,32.9699],[1467676800000,32.9419],[1467763200000,32.5815],[1467849600000,32.2363],[1467936000000,32.3145],[1468022400000,32.2541],[1468108800000,32.2541],[1468195200000,32.2541],[1468281600000,32.268],[1468368000000,32.6958],[1468454400000,32.953],[1468540800000,33.2095],[1468627200000,33.1497],[1468713600000,33.1497],[1468800000000,33.1497],[1468886400000,32.9535],[1468972800000,32.6177],[1469059200000,32.6835],[1469145600000,32.6993],[1469232000000,32.4922],[1469318400000,32.4922],[1469404800000,32.4922],[1469491200000,32.5348],[1469577600000,32.5604],[1469664000000,32.5181],[1469750400000,null],[1469836800000,32.6629],[1469923200000,32.6629]], 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: [[1467331200000, 33.350881],[1467331200000, 33.350881],[1467417600000, 32.969870],[1467504000000, 32.969870],[1467590400000, 32.969870],[1467676800000, 32.941855],[1467763200000, 32.581480],[1467849600000, 32.236286],[1467936000000, 32.314505],[1468022400000, 32.254099],[1468108800000, 32.254099],[1468195200000, 32.254099],[1468281600000, 32.267974],[1468368000000, 32.695785],[1468454400000, 32.952982],[1468540800000, 33.209483],[1468627200000, 33.149717],[1468713600000, 33.149717],[1468800000000, 33.149717],[1468886400000, 32.953490],[1468972800000, 32.617735],[1469059200000, 32.683465],[1469145600000, 32.699268],[1469232000000, 32.492206],[1469318400000, 32.492206],[1469404800000, 32.492206],[1469491200000, 32.534841],[1469577600000, 32.560446],[1469664000000, 32.518094],[1469836800000, 32.662929],[1469923200000, 32.662929]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });