Home > DeveloperSection > Forums > transparent color in javascript D3.js
Dag Hammarskjold
Dag Hammarskjold

Total Post:24

Points:168
Posted on    July-08-2013 8:21 AM

 JavaScript JavaScript 
Ratings:


 1 Reply(s)
 2441  View(s)
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


AVADHESH PATEL

Total Post:604

Points:4228
Posted on    July-08-2013 8:30 AM

Hi,

Add Opacity to the green:

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

I hope it helpful for you.

Don't want to miss updates? Please click the below button!

Follow MindStick