-
Notifications
You must be signed in to change notification settings - Fork 1.3k
-
I tried looking css in developer tool to set font font size using below code when font size increase the data goes out of page specially if you have 6 digit or more number , also I am not able to find the line width attributes for yline plugin . Please let me know any easy way to set that .
function setAxisFontSize() {
const ylineEl = document.querySelector("perspective-viewer-d3fc-yline");
if (ylineEl && ylineEl.shadowRoot) {
const axisSVG = ylineEl.shadowRoot.querySelector('d3fc-svg.y-axis.left-axis');
if (axisSVG) {
const svgTextNodes = axisSVG.querySelectorAll('svg');
svgTextNodes.forEach(node => node.setAttribute("font-size", "15"));
}
}
}
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment