How to show x-axis months with missing data? #9716
-
|
Hi all, I have data like this (sample), basically a date, and a species id that was observed: My bar chart looks like this (omitting non important stuff): The result I am getting includes only months when the species was observed: But I'd like the chart to show all months from January to December. How I can do this? I tried to wrap my head around Simplified example in Vega editor Many thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
|
Thanks for raising! It would be great if you can share a minimal reproducible example that people can open in the Vega editor. Based on what you shared I see that you are using |
Beta Was this translation helpful? Give feedback.
-
|
Yay, I think I have fixed it. I used ChatGPT (sorry) and although its suggestions did not work as is, I have figured out in what direction to look and was able to fix it. The trick is to do aggregations in |
Beta Was this translation helpful? Give feedback.

Yay, I think I have fixed it. I used ChatGPT (sorry) and although its suggestions did not work as is, I have figured out in what direction to look and was able to fix it. The trick is to do aggregations in
transform, give them names, and now I can useimpute.Solution