# Boxplot different line and fill color

**URL:** <https://community.plotly.com/t/boxplot-different-line-and-fill-color/95133>\
**Category:** plotly.js\
**Tags:** question\
**Created:** [October 14, 2025, 4:24pm UTC](https://community.plotly.com/t/boxplot-different-line-and-fill-color/95133 "2025-10-14T16:24:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SamuelB](https://avatars.discourse-cdn.com/v4/letter/s/a698b9/32.png) [@SamuelB](https://community.plotly.com/u/SamuelB)\
**Post date:** [October 14, 2025, 4:24pm UTC](https://community.plotly.com/t/boxplot-different-line-and-fill-color/95133/1 "2025-10-14T16:24:16Z")

</div>

Hello!

I’m currently making a boxplot graph where I can compare data to each other. With this, some graphs might be overlayed on each other. The goal is to make them with a fairly transparent fill color and a black outline to help distinguish it. Although I am able to get the intended effect with the scatter points, the boxplots themselves are only one color with no distinct outline.  
Here is an example of one of my graphs:

 ![image](https://us1.discourse-cdn.com/flex024/uploads/plot/original/3X/c/0/c071327c9a36edd93dd6a1bd1db2936aa482e13f.png)

This styling seems to be possible, at least in python as shown in the documentation, although I’m not sure how the styling works in this graph example to get the intended effect. Here is the link and photo that I’m referencing:

> **[Box](https://plotly.com/python/box-plots/#:~:text=trace%2029-,Fully,-Styled%20Box%20Plots)**
>
> Over 19 examples of Box Plots including changing color, size, log axes, and more in Python.

 ![image](https://us1.discourse-cdn.com/flex024/uploads/plot/original/3X/c/4/c4f28461006466701d5acb2748a6cb0ee7418f19.png)

If someone could help me translate this to Javascript, that would be great, thank you.
