Combo Chart with stacked bars won't let me create a "Total" line on it.
Nobody has claimed this yet.
- Dominant language
- Clojure
- Stars
- 49.3k
- Forks
- 6.8k
- Avg merge
- 1d 13h
- Merged PRs (30d)
- 653
Description
I would like to create combo chart of product categories by month to see the trends. For this I want to use stacked bar chart ( stack - 100% ) and have a line that will show total amount of product sold. Right now there are amounts for every category but is it possible somehow to make a line that will be calculated using summarized amounts?
I have tried another approach:
- Summarize by Created at: Month and measure "Sum of Total"
- Join the same table by Created at: Month and then summarize by Created at: Month and Product category. As measures I use "Sum of Total" which is grouped by joined table period and category and them min/max "Sum of Total" from first table.
This way I have period and category for X - axis and Amount by category and Total by Month as Y - axis but Metabase won't allow to use 2 dimensions for x and y axis at the same time.
To Reproduce
- Go to Sample database and select orders
- Summarize by Created at: Month and Products category. As measure create "Sum of Total"
- Select Combo chart and on Display tab : Stack - 100%
Expected behavior
If nothing specified, a line should appear showing a total amount of column values.
Logs
No response
Information about your Metabase installation
{
"browser-info": {
"language": "en-US",
"platform": "Linux x86_64",
"userAgent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.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.24+8",
"java.vendor": "Eclipse Adoptium",
"java.vendor.url": "https://adoptium.net/",
"java.version": "11.0.24",
"java.vm.name": "OpenJDK 64-Bit Server VM",
"java.vm.version": "11.0.24+8",
"os.name": "Linux",
"os.version": "6.1.85+",
"user.language": "en",
"user.timezone": "UTC"
},
"metabase-info": {
"databases": [
"mysql",
"sqlserver",
"h2",
"bigquery-cloud-sdk"
],
"hosting-env": "unknown",
"application-database": "postgres",
"application-database-details": {
"database": {
"name": "PostgreSQL",
"version": "13.6 (Ubuntu 13.6-1.pgdg20.04+1)"
},
"jdbc-driver": {
"name": "PostgreSQL JDBC Driver",
"version": "42.7.3"
}
},
"run-mode": "prod",
"plan-alias": "",
"version": {
"date": "2024-12-09",
"tag": "v0.52.2.1",
"hash": "35a4c28"
},
"settings": {
"report-timezone": null
}
}
}
Severity
annoying
Additional context
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the issue in the Sample database using Orders, grouping by Created at: Month and Product category, then open the Combo chart Display tab and select Stack - 100%. Done means the chart can show a line representing the total of the stacked column values, with behavior defined for the unspecified case; no source file or test is named in the issue.
Written by the indexing model from the issue text.
Assessment
- Domain
- data-visualization
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100