Skip to content

Fix black rectangles in QC plot SVG and PDF exports - #1276

Open
ankurjuneja wants to merge 3 commits into
release26.7-SNAPSHOTfrom
26.7_fb_fixBlackboxOnExport
Open

Fix black rectangles in QC plot SVG and PDF exports#1276
ankurjuneja wants to merge 3 commits into
release26.7-SNAPSHOTfrom
26.7_fb_fixBlackboxOnExport

Conversation

@ankurjuneja

@ankurjuneja ankurjuneja commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

Rationale

The y-axis zoom feature adds invisible hit-area rects to the live plot SVG using fill: transparent. QC plot export serializes that same live SVG (BaseQCPlotPanel.getExportSVGStr → LABKEY.vis.SVGConverter) and POSTs it to visualization-exportPDF/exportImage, where DocumentConversionServiceImpl renders it with Batik/FOP. transparent is not a valid SVG 1.1 value, so Batik falls back to the initial value — black — and the overlays paint solid black bars over the y-axis labels and the legend.

Related Pull Requests

Changes

@labkey-jeckels labkey-jeckels left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This works in practice but every export now logs the following to stdout or stderr. Can we avoid it?

[ERROR] Transcoder - null
Enclosed Exception:
<unknown>:
The attribute "style" represents an invalid CSS declaration ("fill: rgb(255, 255, 255); fill-opacity: 0; pointer-events: all; cursor: zoom-out;").
Original message:
The "zoom-out" identifier is not a valid value for the "cursor" property. 

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.

2 participants