forked from apache/superset
-
Notifications
You must be signed in to change notification settings - Fork 160
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Description
In Bar Charts, when attempting to configure X-axis time formatting, the setting is not applied correctly. The chart always uses "Adaptive" formatting regardless of the user's selected format.
Current Behavior
- User selects specific time format for X-axis (e.g., "%Y-%m-%d")
- Chart saves the configuration
- Chart still renders using Adaptive formatting
- User's time format preference is ignored
Expected Behavior
- User selects desired time format from dropdown
- Chart applies the selected format to X-axis labels
- Time values display in chosen format
- Format persists across chart refreshes
Steps to Reproduce
- Create a Bar Chart with time series data on X-axis
- Go to chart configuration
- Find X-axis time format settings
- Select a specific format (not "Adaptive")
- Save and refresh chart
- Observe X-axis still uses Adaptive formatting
Root Cause
The issue occurs because the X-axis configuration is missing the proper format settings. The chart defaults to Adaptive mode when the configuration is incomplete or not properly passed to the ECharts component.
Proposed Solution
- Ensure X-axis format configuration is properly extracted from chart settings
- Pass format configuration to ECharts options
- Add test cases covering different time format scenarios
- Verify format applies correctly and persists
Technical Context
- Component: Bar Chart (ECharts-based)
- Involves: Chart configuration parsing, ECharts options generation
- Requires: Understanding of ECharts time axis configuration
- Testing: Multiple test cases for different formats needed
Download https://cap.so/ to record your screen (use Studio mode). Export as an mp4, and drag and drop into an issue comment below.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working