ae3e / ae3e-plotly-panel

Plotly panel for Grafana
Apache License 2.0
97 stars 21 forks source link

Text shadow override #18

Closed AKYD closed 3 years ago

AKYD commented 3 years ago

Is there a way to override the text shadow in Sankey/parcoords/other charts ?

On dark theme it looks awful.

ae3e commented 3 years ago

It think it is not related to this plugin and you should check Plotly documentation.

AKYD commented 3 years ago

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 3 years ago

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 3 years ago

It works. Thanks! :+1: