# How to get a value of a selected filter in Categorical Bar Chart?

**URL:** <https://community.dynatrace.com/t/how-to-get-a-value-of-a-selected-filter-in-categorical-bar-chart/40158>\
**Category:** Developer Q&A Forum\
**Tags:** strato, custom-app\
**Created:** [June 12, 2023, 8:59am UTC](https://community.dynatrace.com/t/how-to-get-a-value-of-a-selected-filter-in-categorical-bar-chart/40158 "2023-06-12T08:59:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Radoslaw\_Szulgo](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/radoslaw_szulgo/32/1977_2.png) [@Radoslaw\_Szulgo](https://community.dynatrace.com/u/Radoslaw_Szulgo)\
**Post date:** [June 12, 2023, 8:59am UTC](https://community.dynatrace.com/t/how-to-get-a-value-of-a-selected-filter-in-categorical-bar-chart/40158/1 "2023-06-12T08:59:27Z")

</div>

I would like to use Categorical Bar Chart a visual representation of a filter for a data table. Is that a correct use case? How can I get the value of a selected category in order to filter the data table?

[https://developer.dynatrace.com/reference/design-system/preview/charts/CategoricalBarChart/](https://developer.dynatrace.com/reference/design-system/preview/charts/CategoricalBarChart/)

---

<div class="post-metadata">

**Author:** ![sinisa\_zubic](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/sinisa_zubic/32/32498_2.png) [@sinisa\_zubic](https://community.dynatrace.com/u/sinisa_zubic)\
**Post date:** [June 12, 2023, 12:30pm UTC](https://community.dynatrace.com/t/how-to-get-a-value-of-a-selected-filter-in-categorical-bar-chart/40158/2 "2023-06-12T12:30:16Z")

</div>

Hi&nbsp;[@Radoslaw\_Szulgo](https://community.dynatrace.com/user/25371)

You could use the&nbsp;`onSeriesClick`&nbsp;prop of&nbsp;`CategoricalBarChart`&nbsp;to check which timeseries has been selected. but unfortunately it has currently an issue and the event is not firing. the team is currently investigating&nbsp;the issue.

Best,  
Sini

---

<div class="post-metadata">

**Author:** ![Radoslaw\_Szulgo](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/radoslaw_szulgo/32/1977_2.png) [@Radoslaw\_Szulgo](https://community.dynatrace.com/u/Radoslaw_Szulgo)\
**Post date:** [June 12, 2023, 12:33pm UTC](https://community.dynatrace.com/t/how-to-get-a-value-of-a-selected-filter-in-categorical-bar-chart/40158/3 "2023-06-12T12:33:19Z")

</div>

Ooo! That’s a nice hint. Looking forward to getting this fixed.
