apache/superset

Line chart skips intermediate categories when x‑axis is string (but data exists)

Open

#35,853 opened on Oct 27, 2025

View on GitHub
 (10 comments) (0 reactions) (1 assignee)TypeScript (17,291 forks)batch import
good first issue

Repository metrics

Stars
 (72,837 stars)
PR merge metrics
 (Avg merge 22d 17h) (641 merged PRs in 30d)

Description

Bug description

month_id SUM(value)
202401 496
202402 1334
202403 2356
202404 3195
202405 1799
202408 4914
202409 7785
202410 8990
202411 9615
202412 10881

Query to reproduce Virtual Dataset:

SELECT
    toInt32(formatDateTime(d, '%Y%m%d')) AS day_id,
    toDayOfYear(d) AS value
FROM (
    SELECT addDays(toDate('2024-01-01'), number) AS d
    FROM numbers(366)  -- 2024 is a leap year
) 
WHERE d < toDate('2024-05-15')
   OR d > toDate('2024-08-10')
ORDER BY day_id

Screenshots/recordings

No response

Superset version

master / latest-dev

Python version

3.11

Node version

18 or greater

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.

Contributor guide