Skip to content

Is there an option to remove auto-generated class? #727

Answered by mbostock
Emporea asked this question in Q&A
Discussion options

You must be logged in to vote

I am not aware of a more simple way. Plot requires a className in order to apply its stylesheet. We do not support disabling this stylesheet, but we do allow you to set whatever className you want as the top-level option (as you noted).

plot/src/plot.js

Lines 83 to 95 in 5ce6cc0

.call(svg => svg.append("style").text(`
.${className} {
display: block;
background: white;
height: auto;
height: intrinsic;
max-width: 100%;
}
.${className} text,
.${className} tspan {
white-space: pre;
}
`))

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Fil
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants