New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mismatched timeseries axes and labels in a Bar chart #8413
Comments
It was suggested to me to add my observation of likely same bug. I see an offset between the timestamps and labels on the x-axis. This affects
Metabase jar is running with |
This is exactly the bug reported (and diagnosed) here: #5246 (comment) I objectively don't understand why this has been deprioritized for so long. Isn't any user of Metabase relying on time axes? 🤔 Anyways, I'm very happy to see it back in the milestone :-) |
Is there a workaround on this? This is quite an issue that might lead to misunderstanding of data. |
@smic-datalabs-von there's no workaround but a fix is coming. We've updated how Metabase communicates timezone info in its internal API. The next release shouldn't have this issue. Sorry for the delay in getting this fixed! |
@smic-datalabs-von I shared a quick fix in my previous diagnosis of this problem there. |
I'm pretty certain this is a duplicate of #4245, which, as I just noted there, is fixed in 0.33.6. Going to close this as such since I was able to repro this bug in 0.32.10, but it appears fixed for me in 0.33.6 and master. Please let me know if you're still experiencing this. |
Using a custom question against a BigQuery view, I see a discrepancy between the timestamps reported in the axes and labels of a Bar chart. Incidentally, a Row chart displays correctly against the same data shows matched labels correctly.
metabase/metabase:v0.30.0
)Question definition
Bar Chart
Incorrectly showing events from 24th August against the 23rd axes label
Row Chart
Correctly showing events from 24th August against the 24th axes label (apologies, the axes label is very feint)
Raw Data
BigQuery - view data
Subset of data showing event_timestamp field stored as TIMESTAMP with timezone information
Having read through some of the other issues referencing timezones as a potential cause (e.g. issues 2340, 5246 and PR 7247), I can confirm that the Metabase server is running in UTC timezone, Metabase "Report Timezone" is UTC, and the underlying raw data in Bigquery is stored with UTC timezone. My browser timezone is currently set as BST (GMT+1) - manually setting this to an earlier timezone (e.g. Azores/GMT) fixes the display of the Bar chart (bars then appear under the correct axis label).
The text was updated successfully, but these errors were encountered: