dosubot[bot] commented on issue #36185:
URL: https://github.com/apache/superset/issues/36185#issuecomment-3596243791

   <!-- Answer -->
   The header misalignment with metrics and time shift persists on master 
because the grouping and header ID logic in the TableChart component doesn't 
guarantee unique or consistent mapping when multiple metrics and their 
time-shift columns share the same base label. This can result in grouped 
headers drifting away from the actual columns below, especially if 
originalLabel values are duplicated or grouping keys are inconsistent. The 
recent fix in PR #35968 improved header ID generation, but it doesn't fully 
resolve cases with duplicate labels or complex metric/time-shift combinations 
[source](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset-frontend/plugins/plugin-chart-table/src/TableChart.tsx#L255-L1243).
   
   There isn't an open issue or PR currently tracking this specific bug. As a 
workaround, you could try renaming your metrics to ensure unique labels or use 
custom CSS targeting header IDs if possible. If you can share a minimal 
reproducible example or specific configuration that triggers the misalignment, 
it would help maintainers debug and address the problem. Reviewing the grouping 
and header ID logic in TableChart and DataTable for uniqueness and correct 
mapping is recommended for a long-term fix.
   
   
   <!-- Dosu Comment Footer -->
   *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).*
   
   ---
   <sup>How did I do? 
[Good](https://app.dosu.dev/response-feedback/a65f4eb4-2db5-4219-9263-617b91f71204?feedback_type=great_response)
 | 
[Irrelevant](https://app.dosu.dev/response-feedback/a65f4eb4-2db5-4219-9263-617b91f71204?feedback_type=irrelevant_answer)
 | 
[Incorrect](https://app.dosu.dev/response-feedback/a65f4eb4-2db5-4219-9263-617b91f71204?feedback_type=incorrect_sources)
 | 
[Verbose](https://app.dosu.dev/response-feedback/a65f4eb4-2db5-4219-9263-617b91f71204?feedback_type=too_verbose)
 | 
[Hallucination](https://app.dosu.dev/response-feedback/a65f4eb4-2db5-4219-9263-617b91f71204?feedback_type=hallucination)
 | [Report 
🐛](https://app.dosu.dev/response-feedback/a65f4eb4-2db5-4219-9263-617b91f71204?feedback_type=bug_report)
 | 
[Other](https://app.dosu.dev/response-feedback/a65f4eb4-2db5-4219-9263-617b91f71204?feedback_type=other)</sup>
   
   [![Chat with 
Dosu](https://dosu.dev/dosu-chat-badge.svg)](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=github)&nbsp;[![Open
 in 
Cursor](https://dosu.dev/dosu-in-cursor.svg)](https://cursor.com/link/prompt?text=The%20header%20misalignment%20with%20metrics%20and%20time%20shift%20persists%20on%20master%20because%20the%20grouping%20and%20header%20ID%20logic%20in%20the%20TableChart%20component%20doesn%27t%20guarantee%20unique%20or%20consistent%20mapping%20when%20multiple%20metrics%20and%20their%20time-shift%20columns%20share%20the%20same%20base%20label.%20This%20can%20result%20in%20grouped%20headers%20drifting%20away%20from%20the%20actual%20columns%20below%2C%20especially%20if%20originalLabel%20values%20are%20duplicated%20or%20grouping%20keys%20are%20inconsistent.%20The%20recent%20fix%20in%20PR%20%2335968%20improved%20header%20ID%20generation%2C%20but%20it%20doesn%27t%20fully%20resolve%20cases%20with%20duplicate%20labels%20or%20complex%20metric/time-shift%20c
 
ombinations%20%5Bsource%5D%28https%3A//github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset-frontend/plugins/plugin-chart-table/src/TableChart.tsx%23L255-L1243%29.%0A%0AThere%20isn%27t%20an%20open%20issue%20or%20PR%20currently%20tracking%20this%20specific%20bug.%20As%20a%20workaround%2C%20you%20could%20try%20renaming%20your%20metrics%20to%20ensure%20unique%20labels%20or%20use%20custom%20CSS%20targeting%20header%20IDs%20if%20possible.%20If%20you%20can%20share%20a%20minimal%20reproducible%20example%20or%20specific%20configuration%20that%20triggers%20the%20misalignment%2C%20it%20would%20help%20maintainers%20debug%20and%20address%20the%20problem.%20Reviewing%20the%20grouping%20and%20header%20ID%20logic%20in%20TableChart%20and%20DataTable%20for%20uniqueness%20and%20correct%20mapping%20is%20recommended%20for%20a%20long-term%20fix.)&nbsp;[![Join
 
Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-b
 ot)&nbsp;[![Share on 
X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/issues/36185)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to