apache/superset

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

Open

#35,853 创建于 2025年10月27日

在 GitHub 查看
 (10 评论) (0 反应) (1 负责人)TypeScript (72,837 star) (17,291 fork)batch import
good first issue

描述

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.

贡献者指南