Text shadow override
AKYD opened this issue · 4 comments
AKYD commented
Is there a way to override the text shadow in Sankey/parcoords/other charts ?
On dark theme it looks awful.
ae3e commented
It think it is not related to this plugin and you should check Plotly documentation.
AKYD commented
Indeed, the shadow comes from Plotly, but there is no parameter to disable it.
I've only found this, but don't know how to override the css style from this plugin - any idea if it's possible?
ae3e commented
You could try to add this in your script even if it's not the right place to do it :
document.querySelectorAll(".sankey .node-label-text-path").forEach(item=>{
item.style="text-shadow: none;fill: #fff !important;"
})
AKYD commented
It works. Thanks! 👍