Question about name change in bar chart

Hello everyone, I have a question a colleague asked me.

Is it possible to change the name of a variable created in the time dimension? I know it’s possible when creating or editing it, but my question is whether it’s possible to make that name dynamic. For example, instead of saying “Previous month” or “2 Previous months,” it should show the corresponding month. For example, if it’s December, should the chart show “November” or “October?” Perhaps with JavaScript, but I’m not sure.

Thank you very much.

Regards!