$(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: [[1533168000000,4.23208],[1533254400000,4.21119],[1533340800000,4.21263],[1533427200000,4.21263],[1533513600000,4.21263],[1533600000000,4.20265],[1533686400000,4.2069],[1533772800000,4.19217],[1533859200000,4.21509],[1533945600000,4.18714],[1534032000000,4.18714],[1534118400000,4.18714],[1534204800000,4.18333],[1534291200000,4.20144],[1534377600000,4.16713],[1534464000000,4.21887],[1534550400000,4.26121],[1534636800000,4.26121],[1534723200000,4.26121],[1534809600000,4.24058],[1534896000000,4.27323],[1534982400000,4.34276],[1535068800000,4.3238],[1535155200000,4.3238],[1535241600000,4.3238],[1535328000000,4.3238],[1535414400000,4.34943],[1535500800000,4.40475],[1535587200000,4.39631],[1535673600000,4.43412]], 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, 4.232078],[1533168000000, 4.232078],[1533254400000, 4.211190],[1533340800000, 4.212627],[1533427200000, 4.212627],[1533513600000, 4.212627],[1533600000000, 4.202650],[1533686400000, 4.206901],[1533772800000, 4.192173],[1533859200000, 4.215090],[1533945600000, 4.187138],[1534032000000, 4.187138],[1534118400000, 4.187138],[1534204800000, 4.183331],[1534291200000, 4.201442],[1534377600000, 4.167134],[1534464000000, 4.218872],[1534550400000, 4.261209],[1534636800000, 4.261209],[1534723200000, 4.261209],[1534809600000, 4.240576],[1534896000000, 4.273227],[1534982400000, 4.342761],[1535068800000, 4.323799],[1535155200000, 4.323799],[1535241600000, 4.323799],[1535328000000, 4.323799],[1535414400000, 4.349427],[1535500800000, 4.404749],[1535587200000, 4.396314],[1535673600000, 4.434116]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });