Replies: 1 comment
-
|
This is a CSS specificity issue in embedded notebooks. Plot renders its color legend as Workaround — force legend colors in print CSS: @media print {
/* Target Plot's swatch elements */
.observablehq svg [fill],
.observablehq [style*="background"] {
print-color-adjust: exact;
-webkit-print-color-adjust: exact;
}
}Root cause: Browsers default Chrome-specific: Chrome requires If you control the embedding page, adding the above CSS to the host stylesheet is the most reliable fix. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Although a legends appears in print mode while viewing from the Notebook directly, the legend colors are missing when the notebook is embedded.
Browser: Chrome
Beta Was this translation helpful? Give feedback.
All reactions