---
title: "transparent color in javascript D3.js"  
description: "transparent color in javascript D3.js"  
author: "Dag Hammarskjold"  
published: 2013-07-08  
updated: 2013-07-08  
canonical: https://www.mindstick.com/forum/1260/transparent-color-in-javascript-d3-js  
category: "javascript"  
tags: ["javascript"]  
reading_time: 1 minute  

---

# transparent color in javascript D3.js

Hi [Developers](https://www.mindstick.com/articles/12875/blunders-you-must-avoid-while-hiring-java-developers-to-get-the-best-fulfilling-your-needs)!\
Is there anyway to make the [color](https://www.mindstick.com/articles/77/how-to-split-form-background-color-in-c-sharp) of this graph [transparent](https://www.mindstick.com/forum/1784/wpf-webbrowser-on-transparent-window)? I want to be able to see behind the [green](https://www.mindstick.com/articles/95829/think-green-sustainable-design-considerations-for-commercial-buildings) data.\
Thanks

## Replies

### Reply by AVADHESH PATEL

Hi,\
Add Opacity to the green:\
**.line1 {** **fill: green;** **stroke: black;** **stroke-width: 1.5px;** **opacity:0.5;****}**\
I hope it helpful for you.


---

Original Source: https://www.mindstick.com/forum/1260/transparent-color-in-javascript-d3-js

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
