$(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: 'Курс CHF, грн'}, 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: 'Курс CHF', data: [[1506816000000,27.3881],[1506902400000,27.3881],[1506988800000,27.4613],[1507075200000,27.4133],[1507161600000,27.5834],[1507248000000,27.4304],[1507334400000,27.2853],[1507420800000,27.2853],[1507507200000,27.2853],[1507593600000,27.1267],[1507680000000,27.2207],[1507766400000,27.2379],[1507852800000,27.3356],[1507939200000,27.3356],[1508025600000,27.3356],[1508112000000,27.3356],[1508198400000,27.3356],[1508284800000,27.0714],[1508371200000,26.8784],[1508457600000,27.1727],[1508544000000,27.0446],[1508630400000,27.0446],[1508716800000,27.0446],[1508803200000,null],[1508889600000,27.0098],[1508976000000,26.9876],[1509062400000,26.9989],[1509148800000,26.8134],[1509235200000,26.8134],[1509321600000,26.8134],[1509408000000,26.8502]], 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: [[1506816000000, 27.388123],[1506816000000, 27.388123],[1506902400000, 27.388123],[1506988800000, 27.461329],[1507075200000, 27.413257],[1507161600000, 27.583396],[1507248000000, 27.430430],[1507334400000, 27.285311],[1507420800000, 27.285311],[1507507200000, 27.285311],[1507593600000, 27.126747],[1507680000000, 27.220726],[1507766400000, 27.237858],[1507852800000, 27.335571],[1507939200000, 27.335571],[1508025600000, 27.335571],[1508112000000, 27.335571],[1508198400000, 27.335571],[1508284800000, 27.071385],[1508371200000, 26.878435],[1508457600000, 27.172724],[1508544000000, 27.044645],[1508630400000, 27.044645],[1508716800000, 27.044645],[1508889600000, 27.009846],[1508976000000, 26.987596],[1509062400000, 26.998908],[1509148800000, 26.813397],[1509235200000, 26.813397],[1509321600000, 26.813397],[1509408000000, 26.850201]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });