Bar Chart Trend Line SQL

Can I add trendline for bar chart if the question written in SQL ?

Yes you should be able to. Did you actually try it out and you are experiencing issues?

I don't have the trend line choice when it is sql
only in query builder

Can you share the Admin -> Troubleshooting -> Diagnostic Info

{
"browser-info": {
"language": "en-US",
"platform": "Win32",
"userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36",
"vendor": "Google Inc."
},
"system-info": {
"file.encoding": "UTF-8",
"java.runtime.name": "OpenJDK Runtime Environment",
"java.runtime.version": "11.0.17+8-post-Ubuntu-1ubuntu220.04",
"java.vendor": "Ubuntu",
"java.vendor.url": "https://ubuntu.com/",
"java.version": "11.0.17",
"java.vm.name": "OpenJDK 64-Bit Server VM",
"java.vm.version": "11.0.17+8-post-Ubuntu-1ubuntu220.04",
"os.name": "Linux",
"os.version": "5.15.0-1026-aws",
"user.language": "en",
"user.timezone": "Etc/UTC"
},
"metabase-info": {
"databases": [
"mysql",
"bigquery-cloud-sdk",
"postgres"
],
"hosting-env": "unknown",
"application-database": "mysql",
"application-database-details": {
"database": {
"name": "MySQL",
"version": "8.0.28"
},
"jdbc-driver": {
"name": "MariaDB Connector/J",
"version": "2.7.6"
}
},
"run-mode": "prod",
"version": {
"date": "2023-01-27",
"tag": "v0.45.2.1",
"branch": "release-x.45.2.x",
"hash": "1a59de7"
},
"settings": {
"report-timezone": null
}
}
}

Hmm strange we are on the same env.

What is the visualization Settings > Axes > X-axis scale?

What is the database column type of your date column?

And what is the Field Type in Admin > Data Model > (database+schema) > (table) > (column) :gear: ?

What is the visualization Settings > Axes > X-axis scale?
Timeseries

What is the database column type of your date column?
Calculated column % (column / column )