$(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: [[1533168000000,3.30624],[1533254400000,3.28721],[1533340800000,3.29054],[1533427200000,3.29054],[1533513600000,3.29054],[1533600000000,3.28541],[1533686400000,3.29988],[1533772800000,3.27859],[1533859200000,3.29309],[1533945600000,3.27416],[1534032000000,3.27416],[1534118400000,3.27416],[1534204800000,3.27204],[1534291200000,3.28729],[1534377600000,3.25376],[1534464000000,3.2728],[1534550400000,3.28315],[1534636800000,3.28315],[1534723200000,3.28315],[1534809600000,3.27022],[1534896000000,3.28402],[1534982400000,3.34598],[1535068800000,3.34268],[1535155200000,3.34268],[1535241600000,3.34268],[1535328000000,3.34268],[1535414400000,3.34463],[1535500800000,3.37793],[1535587200000,3.3633],[1535673600000,3.40168]], 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, 3.306239],[1533168000000, 3.306239],[1533254400000, 3.287208],[1533340800000, 3.290538],[1533427200000, 3.290538],[1533513600000, 3.290538],[1533600000000, 3.285408],[1533686400000, 3.299878],[1533772800000, 3.278590],[1533859200000, 3.293090],[1533945600000, 3.274164],[1534032000000, 3.274164],[1534118400000, 3.274164],[1534204800000, 3.272037],[1534291200000, 3.287289],[1534377600000, 3.253757],[1534464000000, 3.272797],[1534550400000, 3.283149],[1534636800000, 3.283149],[1534723200000, 3.283149],[1534809600000, 3.270224],[1534896000000, 3.284022],[1534982400000, 3.345982],[1535068800000, 3.342684],[1535155200000, 3.342684],[1535241600000, 3.342684],[1535328000000, 3.342684],[1535414400000, 3.344630],[1535500800000, 3.377927],[1535587200000, 3.363299],[1535673600000, 3.401679]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });