Skip to content
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

Using DuckDB DATE types in a chart's x-axis shows incorrect values/spacing #640

Open
cbruno10 opened this issue Dec 19, 2024 · 2 comments
Open
Assignees
Labels
bug Something isn't working

Comments

@cbruno10
Copy link

Describe the bug
If I have data like 2024-12-05 in DuckDB's DATE type in an x-axis (from the datetrunc() function), the x-axis doesn't display properly

@cbruno10 cbruno10 added the bug Something isn't working label Dec 19, 2024
@MichaelBurgess
Copy link
Contributor

@cbruno10 do you have a reference snapshot I can use to debug this please?

@MichaelBurgess
Copy link
Contributor

MichaelBurgess commented Jan 13, 2025

The issue is that the default min interval between the time series points means the chart tries to render the missing bits between the 24hr period. We have three routes forward here:

  1. Format the series column to be a string in the format you want
  2. We add support for forcing a chart to use category series, even when it looks like time series
  3. We add support for adjusting the min interval on a time series chart

Example of #2

Image

Example of #3

Image

@cbruno10 any preferences on a route forward?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants