$(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: 'Курс RUB, грн'}, 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: 'Курс RUB', data: [[1467331200000,0.38688],[1467417600000,0.38773],[1467504000000,0.38773],[1467590400000,0.38773],[1467676800000,0.38967],[1467763200000,0.3866],[1467849600000,0.38437],[1467936000000,0.38743],[1468022400000,0.38657],[1468108800000,0.38657],[1468195200000,0.38657],[1468281600000,0.38709],[1468368000000,0.38874],[1468454400000,0.38872],[1468540800000,0.39005],[1468627200000,0.39271],[1468713600000,0.39271],[1468800000000,0.39271],[1468886400000,0.39383],[1468972800000,0.39395],[1469059200000,0.39124],[1469145600000,0.38935],[1469232000000,0.38393],[1469318400000,0.38393],[1469404800000,0.38393],[1469491200000,0.38183],[1469577600000,0.37701],[1469664000000,0.37629],[1469750400000,null],[1469836800000,0.36996],[1469923200000,0.36996]], 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, 0.386880],[1467331200000, 0.386880],[1467417600000, 0.387730],[1467504000000, 0.387730],[1467590400000, 0.387730],[1467676800000, 0.389670],[1467763200000, 0.386600],[1467849600000, 0.384370],[1467936000000, 0.387430],[1468022400000, 0.386570],[1468108800000, 0.386570],[1468195200000, 0.386570],[1468281600000, 0.387090],[1468368000000, 0.388740],[1468454400000, 0.388720],[1468540800000, 0.390050],[1468627200000, 0.392710],[1468713600000, 0.392710],[1468800000000, 0.392710],[1468886400000, 0.393830],[1468972800000, 0.393950],[1469059200000, 0.391240],[1469145600000, 0.389350],[1469232000000, 0.383930],[1469318400000, 0.383930],[1469404800000, 0.383930],[1469491200000, 0.381830],[1469577600000, 0.377010],[1469664000000, 0.376290],[1469836800000, 0.369960],[1469923200000, 0.369960]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });