[Chartjs]-How can I highlight/format a specific date label (e.g. today) on a time axis using chart.js?

1👍

You can apply any custom formatting you want to return the text “Today”: https://www.chartjs.org/docs/latest/axes/labelling.html#creating-custom-tick-formats

In 3.0 (currently in alpha), you can use scriptable tick options to make a single tick of your choosing bold:

fontStyle: function(context) {
        return context.index === 0 ? 'bold' : undefined;
},

https://www.chartjs.org/docs/next/axes/styling.html#tick-configuration

Leave a comment