How to set the column chart date format

My data format is YYYY-MM
Localization is also set to YYYY-MM-DD
But the format displayed by the histogram does not match what I want
chart date format :MM,YYYY
i want:YYYY-MM

2020-12-10_185239

Hi @cnfjmail
Post “Diagnostic Info” from Admin > Troubleshooting, and which database you are querying, and which type of question it is.
I’m not sure what you are doing differently, but on 0.37.3 it works:

I use MongoD native query
{
“browser-info”: {
“language”: “zh-CN”,
“platform”: “Win32”,
“userAgent”: “Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36”,
“vendor”: “Google Inc.”
},
“system-info”: {
“file.encoding”: “UTF-8”,
“java.runtime.name”: “OpenJDK Runtime Environment”,
“java.runtime.version”: “11.0.7+10”,
“java.vendor”: “AdoptOpenJDK”,
“java.vendor.url”: “https://adoptopenjdk.net/”,
“java.version”: “11.0.7”,
“java.vm.name”: “OpenJDK 64-Bit Server VM”,
“java.vm.version”: “11.0.7+10”,
“os.name”: “Linux”,
“os.version”: “3.10.0-957.el7.x86_64”,
“user.language”: “en”,
“user.timezone”: “Asia/Hong_Kong”
},
“metabase-info”: {
“databases”: [
“mongo”
],
“hosting-env”: “unknown”,
“application-database”: “mysql”,
“application-database-details”: {
“database”: {
“name”: “MySQL”,
“version”: “8.0.20”
},
“jdbc-driver”: {
“name”: “MariaDB Connector/J”,
“version”: “2.6.2”
}
},
“run-mode”: “prod”,
“version”: {
“date”: “2020-12-03”,
“tag”: “v0.37.3”,
“branch”: “release-x.37.x”,
“hash”: “2f1e783”
},
“settings”: {
“report-timezone”: “Asia/Hong_Kong”
}
}
}

@cnfjmail That’s because you are not returning a date type, and using Native question, so Metabase does not know how to handle that.