# Feature request: Tie Diagram line/bar color to Metric Data

**URL:** <https://community.piwik.pro/t/feature-request-tie-diagram-line-bar-color-to-metric-data/3722>\
**Category:** Reports and working with data\
**Created:** [February 29, 2024, 8:09am UTC](https://community.piwik.pro/t/feature-request-tie-diagram-line-bar-color-to-metric-data/3722 "2024-02-29T08:09:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Terve](https://avatars.discourse-cdn.com/v4/letter/t/3ec8ea/32.png) [@Terve](https://community.piwik.pro/u/Terve)\
**Post date:** [February 29, 2024, 8:09am UTC](https://community.piwik.pro/t/feature-request-tie-diagram-line-bar-color-to-metric-data/3722/1 "2024-02-29T08:09:36Z")

</div>

The more I use Piwik, the more I love it. But then you always want more. I can’t find a way to change the color of diagram lines or bars. It would be great if that would be possible. Even better if you could tie a specific color to a specific metric data. I have a custom metric called “Portfolio” (it is actually a Dimension value group). The Portfolio dimension can have eight different values.  
It would be great if I could decide that:

Portfolio A always is Blue  
Portfolio B always is Red  
…  
Portfolio H always is Green

This should be a global setting that impacts all diagrams everywhere.

---

<div class="post-metadata">

**Author:** ![sararekowska](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/sararekowska/32/1582_2.png) [@sararekowska](https://community.piwik.pro/u/sararekowska)\
**Post date:** [February 29, 2024, 12:52pm UTC](https://community.piwik.pro/t/feature-request-tie-diagram-line-bar-color-to-metric-data/3722/2 "2024-02-29T12:52:27Z")

</div>

Hi!

Thanks for your feedback! I’ve created a feature request and included your post 🙂

---

<div class="post-metadata">

**Author:** ![Terve](https://avatars.discourse-cdn.com/v4/letter/t/3ec8ea/32.png) [@Terve](https://community.piwik.pro/u/Terve)\
**Post date:** [March 1, 2024, 11:59am UTC](https://community.piwik.pro/t/feature-request-tie-diagram-line-bar-color-to-metric-data/3722/4 "2024-03-01T11:59:45Z")

</div>

Hi James, I was not aware that it was possible to make your own scripts like that. Where / how do you implement them?
