JSON input of Date Range label in charts

OpenSearch 2.3 (relevant - OpenSearch/Dashboard/Server OS/Browser):

Describe the issue:
When creating a chart, how to change a label of Date Range Aggregation in Buckets? In my case I want to change date format of X-axis on months: Dec 2023, Jan 2024, Feb 2024…
How to write the painless scripting function in JSON input? Thanks.

Configuration:

Relevant Logs or Screenshots: