I am trying to insert current date to subtitle in highcharts as below:
subtitle: {
text: function() {
var d = new Date();
return '<b>' + d + '</b>';
},
},
I am not getting Date value instead I am getting the function printed as the subtitle. Any ideas?