apache/superset

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

Open

Aperta il 27 ott 2025

Vedi su GitHub
 (10 commenti) (0 reazioni) (1 assegnatario)TypeScript (72.837 star) (17.291 fork)batch import
good first issue

Descrizione

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.

Guida contributor