$(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: 'Курс DKK, грн'}, 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: 'Курс DKK', data: [[1467331200000,3.70526],[1467417600000,3.71587],[1467504000000,3.71587],[1467590400000,3.71587],[1467676800000,3.71454],[1467763200000,3.72227],[1467849600000,3.69536],[1467936000000,3.69499],[1468022400000,3.69488],[1468108800000,3.69488],[1468195200000,3.69488],[1468281600000,3.69213],[1468368000000,3.70464],[1468454400000,3.69493],[1468540800000,3.7198],[1468627200000,3.71165],[1468713600000,3.71165],[1468800000000,3.71165],[1468886400000,3.69339],[1468972800000,3.681],[1469059200000,3.67351],[1469145600000,3.67455],[1469232000000,3.67368],[1469318400000,3.67368],[1469404800000,3.67368],[1469491200000,3.6592],[1469577600000,3.66383],[1469664000000,3.66633],[1469750400000,null],[1469836800000,3.70661],[1469923200000,3.70661]], 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, 3.705255],[1467331200000, 3.705255],[1467417600000, 3.715870],[1467504000000, 3.715870],[1467590400000, 3.715870],[1467676800000, 3.714536],[1467763200000, 3.722265],[1467849600000, 3.695361],[1467936000000, 3.694991],[1468022400000, 3.694883],[1468108800000, 3.694883],[1468195200000, 3.694883],[1468281600000, 3.692126],[1468368000000, 3.704640],[1468454400000, 3.694927],[1468540800000, 3.719803],[1468627200000, 3.711654],[1468713600000, 3.711654],[1468800000000, 3.711654],[1468886400000, 3.693385],[1468972800000, 3.681000],[1469059200000, 3.673506],[1469145600000, 3.674547],[1469232000000, 3.673685],[1469318400000, 3.673685],[1469404800000, 3.673685],[1469491200000, 3.659202],[1469577600000, 3.663833],[1469664000000, 3.666329],[1469836800000, 3.706606],[1469923200000, 3.706606]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });