# Ui\_chart: Group stacked bar chart?

**URL:** https://discourse.nodered.org/t/ui-chart-group-stacked-bar-chart/61029
**Category:** Dashboard
**Created:** [9 April 2022 13:06 UTC](https://discourse.nodered.org/t/ui-chart-group-stacked-bar-chart/61029 "2022-04-09T13:06:16Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![rakgupta](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/rakgupta/32/42535_2.png) [@rakgupta](https://discourse.nodered.org/u/rakgupta)
#### Post date: [9 April 2022 13:06 UTC](https://discourse.nodered.org/t/ui-chart-group-stacked-bar-chart/61029/1 "2022-04-09T13:06:16Z")

</div>

Hello:

I am trying to "group" stacked bar charts and while chartjs has an attribute "stack" in addition to "series", "data", "labels", it does not appear to work with ui\_chart.

**Example:** I have 4 series (Series 1- 4), I want to show Series 1 and 2 in the first bar, and Series 3 and 4 in the second bar. If I use the "stacked = true" in options (ui\_control), it stacks all 4 series in the same bar.

It that something that cannot be done with ui\_chart node and I should use chartjs and ui\_template?

Thanks for your help.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [9 May 2022 13:06 UTC](https://discourse.nodered.org/t/ui-chart-group-stacked-bar-chart/61029/2 "2022-05-09T13:06:19Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
