$(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: 'Курс NOK, грн'}, 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: 'Курс NOK', data: [[1519862400000,3.40502],[1519948800000,3.36019],[1520035200000,3.39693],[1520121600000,3.39693],[1520208000000,3.39693],[1520294400000,3.38314],[1520380800000,3.40182],[1520467200000,3.34806],[1520553600000,3.34806],[1520640000000,3.34806],[1520726400000,3.34806],[1520812800000,3.34806],[1520899200000,3.33446],[1520985600000,3.34823],[1521072000000,3.36126],[1521158400000,3.41016],[1521244800000,3.41565],[1521331200000,3.41565],[1521417600000,3.41565],[1521504000000,3.4179],[1521590400000,3.40357],[1521676800000,3.39782],[1521763200000,3.39258],[1521849600000,3.38791],[1521936000000,3.38791],[1522022400000,3.38791],[1522108800000,3.41443],[1522195200000,3.4054],[1522281600000,3.39517],[1522368000000,3.37958],[1522454400000,3.34948]], 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: [[1519862400000, 3.405017],[1519862400000, 3.405017],[1519948800000, 3.360191],[1520035200000, 3.396931],[1520121600000, 3.396931],[1520208000000, 3.396931],[1520294400000, 3.383142],[1520380800000, 3.401819],[1520467200000, 3.348061],[1520553600000, 3.348061],[1520640000000, 3.348061],[1520726400000, 3.348061],[1520812800000, 3.348061],[1520899200000, 3.334462],[1520985600000, 3.348226],[1521072000000, 3.361262],[1521158400000, 3.410156],[1521244800000, 3.415651],[1521331200000, 3.415651],[1521417600000, 3.415651],[1521504000000, 3.417901],[1521590400000, 3.403566],[1521676800000, 3.397820],[1521763200000, 3.392579],[1521849600000, 3.387908],[1521936000000, 3.387908],[1522022400000, 3.387908],[1522108800000, 3.414429],[1522195200000, 3.405399],[1522281600000, 3.395168],[1522368000000, 3.379584],[1522454400000, 3.349479]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });