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

The content displayed in the calendar chart is missing #29514

Open
3 tasks done
wycweb opened this issue Jul 8, 2024 · 2 comments
Open
3 tasks done

The content displayed in the calendar chart is missing #29514

wycweb opened this issue Jul 8, 2024 · 2 comments

Comments

@wycweb
Copy link

wycweb commented Jul 8, 2024

Bug description

When the selected date range is less than a month, The content displayed in the calendar chart is missing.
image

How to reproduce the bug

When the selected date range more than a month,the chart is displaying normally.
image
When the selected date range is less than a month,The content displayed in the calendar chart is missing.
image
image

Screenshots/recordings

3.mov

Superset version

4.0.1

Python version

3.10

Node version

16

Browser

Chrome

Additional context

No response

Checklist

  • I have searched Superset docs and Slack and didn't find a solution to my problem.
  • I have searched the GitHub issue tracker and didn't find a similar bug report.
  • I have checked Superset's logs for errors and if I found a relevant Python stacktrace, I included it here as text in the "additional context" section.
Copy link

dosubot bot commented Jul 8, 2024

Hi @wycweb! I'm here to assist you with your bug report. I can help you solve bugs, answer questions, and become a contributor. Let's work together to resolve the issue.

The content displayed in the calendar chart is missing when the selected date range is less than a month because the default domain setting is set to 'hour', and the range option is set to 12. This configuration is designed to display data in hourly intervals over a span of 12 hours by default. If the selected date range is less than a month, it might not fit well within these settings, leading to missing content in the calendar chart.

To fix this, you can adjust the domain and range settings to better fit the selected date range. For example, you can change the domain to 'day' and adjust the range accordingly:

this.options = {
  // ... other settings ...
  
  // DOMAIN
  domain: 'day', // Change domain to 'day'
  range: 7, // Adjust range to fit the selected date range
  
  // ... other settings ...
};

By adjusting these settings, the calendar chart should display the content correctly for the selected date range [1].

To continue talking to Dosu, mention @dosu.

@rusackas
Copy link
Member

rusackas commented Jul 8, 2024

This seems like it relates to #21870

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants