Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

how to set the axis font and line width in yline #3086

Unanswered
sambhav8 asked this question in Q&A
Discussion options

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"));
}
}
}

You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant

AltStyle によって変換されたページ (->オリジナル) /