transparent color in javascript D3.js

Total Post:24

Points:168
 3655  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. 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!