Plotly's fillcolor defaults to half-transparency, want no-transparency

后端 未结 2 1242
小蘑菇
小蘑菇 2020-12-19 18:22

I am trying to build a map in R using plotly. I will share the code required to build the dataframe in a reply to this post. Here is the code I am using to plot the chart:

2条回答
  •  庸人自扰
    2020-12-19 19:15

    Without modifying anything in Plotly, I found that you can add

    alpha = 1
    

    to add_trace/add_polygons to change it to completely opaque. So where you have your fillcolor comment, you can drop in

    alpha = 
    

    then 0-1, completely transparent to completely opaque.

提交回复
热议问题