Skip to content

Prevent duplicate bars when redrawing vertical charts - #131

Draft
Rajvira10 wants to merge 1 commit into
mkaz:mainfrom
Rajvira10:fix/vertical-chart-redraw
Draft

Rajvira10 wants to merge 1 commit into
mkaz:mainfrom
Rajvira10:fix/vertical-chart-redraw

Conversation

@Rajvira10

Copy link
Copy Markdown

Drawing the same vertical chart again currently duplicates its bars and value labels because rendering buffers retain the previous output. Reset those buffers before each draw so repeated rendering produces the same chart.

Three regression cases fail before the fix, while six horizontal/stacked controls pass. All 36 tests and MyPy pass afterward. Ruff reports the same 65 diagnostics on the unchanged baseline and the fix; the new test file passes lint and formatting checks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant