# Set the default view to percentage view of a custom content (bargraph)

**URL:** <https://community.seqera.io/t/set-the-default-view-to-percentage-view-of-a-custom-content-bargraph/1100>\
**Category:** Ask for help\
**Tags:** multiqc\
**Created:** [August 15, 2024, 3:24pm UTC](https://community.seqera.io/t/set-the-default-view-to-percentage-view-of-a-custom-content-bargraph/1100 "2024-08-15T15:24:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jinfinance](https://dub1.discourse-cdn.com/flex013/user_avatar/community.seqera.io/jinfinance/32/774_2.png) [@jinfinance](https://community.seqera.io/u/jinfinance)\
**Post date:** [August 15, 2024, 3:24pm UTC](https://community.seqera.io/t/set-the-default-view-to-percentage-view-of-a-custom-content-bargraph/1100/1 "2024-08-15T15:24:56Z")

</div>

I have a custom content bargraph (auto generated from \_mqc.csv file)

It’s default to the absolute count view, like this

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/seqera/original/2X/c/c24abb8854eb8670e0068491361aff0864d226db.png)

How do I set it up so that it’s default to the ‘percentage view’ ? like this:

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/seqera/original/2X/2/24d70b9c3980cc661d5496a8beb93fab32eb5147.png)

Thank you

---

<div class="post-metadata">

**Author:** ![ewels](https://dub1.discourse-cdn.com/flex013/user_avatar/community.seqera.io/ewels/32/1_2.png) [@ewels](https://community.seqera.io/u/ewels)\
**Post date:** [August 23, 2024, 9:48pm UTC](https://community.seqera.io/t/set-the-default-view-to-percentage-view-of-a-custom-content-bargraph/1100/2 "2024-08-23T21:48:41Z")

</div>

Hi @jinfinance,

You’re looking for this bar plot `pconfig` option:

```python
 "cpswitch_c_active": True, # Initial display with 'Counts' specified? False for percentages.

```

Docs: [Plotting Functions - MultiQC](https://multiqc.info/docs/development/plots/#bar-graphs)

Hope that helps!

Phil

---

<div class="post-metadata">

**Author:** ![ewels](https://dub1.discourse-cdn.com/flex013/user_avatar/community.seqera.io/ewels/32/1_2.png) [@ewels](https://community.seqera.io/u/ewels)\
**Post date:** [March 28, 2025, 3:26pm UTC](https://community.seqera.io/t/set-the-default-view-to-percentage-view-of-a-custom-content-bargraph/1100/3 "2025-03-28T15:26:24Z")

</div>


