$(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: [[1533168000000,0.43099],[1533254400000,0.42784],[1533340800000,0.42696],[1533427200000,0.42696],[1533513600000,0.42696],[1533600000000,0.42729],[1533686400000,0.42524],[1533772800000,0.42396],[1533859200000,0.40901],[1533945600000,0.40721],[1534032000000,0.40721],[1534118400000,0.40721],[1534204800000,0.40081],[1534291200000,0.41135],[1534377600000,0.41354],[1534464000000,0.41365],[1534550400000,0.41717],[1534636800000,0.41717],[1534723200000,0.41717],[1534809600000,0.41227],[1534896000000,0.41248],[1534982400000,0.41241],[1535068800000,0.40646],[1535155200000,0.40646],[1535241600000,0.40646],[1535328000000,0.40646],[1535414400000,0.41375],[1535500800000,0.41625],[1535587200000,0.4126],[1535673600000,0.41537]], 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: [[1533168000000, 0.430990],[1533168000000, 0.430990],[1533254400000, 0.427840],[1533340800000, 0.426960],[1533427200000, 0.426960],[1533513600000, 0.426960],[1533600000000, 0.427290],[1533686400000, 0.425240],[1533772800000, 0.423960],[1533859200000, 0.409010],[1533945600000, 0.407210],[1534032000000, 0.407210],[1534118400000, 0.407210],[1534204800000, 0.400810],[1534291200000, 0.411350],[1534377600000, 0.413540],[1534464000000, 0.413650],[1534550400000, 0.417170],[1534636800000, 0.417170],[1534723200000, 0.417170],[1534809600000, 0.412270],[1534896000000, 0.412480],[1534982400000, 0.412410],[1535068800000, 0.406460],[1535155200000, 0.406460],[1535241600000, 0.406460],[1535328000000, 0.406460],[1535414400000, 0.413750],[1535500800000, 0.416250],[1535587200000, 0.412600],[1535673600000, 0.415370]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });