I want to color every x and y axis labels in this frappe chart:
I tried finding the CSS selectors using the chrome devtools, but a single text element (one of the three x axis labels you see in the image) has the following CSS selector:
#frappe-chart-0 > div > svg > g > g.x.axis > g:nth-child(3) > text
My page has multiple (three) frappe charts, with an arbitary number of nth-child elements. So optimally, I would want some CSS selector like this with wildcards:
#frappe-chart-* > div > svg > g > g.*.axis > g:nth-child(*) > text
Unfortunately, that is not possible. Is there another way?
Via Active questions tagged javascript - Stack Overflow https://ift.tt/eGW5Xmx
Comments
Post a Comment