TRANSPARENT COLOR IN JAVASCRIPT D3.JS

Dag Hammarskjold

Total Post:24

Points:168
Posted by  Dag Hammarskjold
 3228  View(s)
Ratings:
Rate this:
Hi Developers!

Is there anyway to make the color of this graph transparent? I want to be able to see behind the green data.

Thanks
  1. AVADHESH PATEL

    Post:604

    Points:4228
    Re: transparent color in javascript D3.js

    Hi,


    Add Opacity to the green:

    .line1 {
      fill: green;
      stroke: black;
      stroke-width: 1.5px;
      opacity:0.5;
    }

    I hope it helpful for you.

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!