# Bug when re-populating bar charts

**URL:** <https://community.appfarm.io/t/bug-when-re-populating-bar-charts/867>\
**Category:** Bug reports\
**Tags:** ui\
**Created:** [November 22, 2023, 6:05pm UTC](https://community.appfarm.io/t/bug-when-re-populating-bar-charts/867 "2023-11-22T18:05:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kaspar](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/kaspar/32/3073_2.png) [@Kaspar](https://community.appfarm.io/u/Kaspar)\
**Post date:** [November 22, 2023, 6:05pm UTC](https://community.appfarm.io/t/bug-when-re-populating-bar-charts/867/1 "2023-11-22T18:05:39Z")

</div>

We’re seeing some weird behaviour on our line charts when changing which objects to visualise. The first screen shot shows how the graph should be looking.  
The issue occur when there’s already data in the graph and we change some filters. The graph then shifts some of the bars to other categories where the value should be 0. Some categories ends up having tree values where it should be two, and some categories are missing their values and bars. We see this issue in all our environments

I belive it’s a issue with how the highchart component are repopulating the graph. If we navigate to another view and then back (basically forcing the chart to re-render) we get the correct chart with all its bars and numbers placed where they should.

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/appfarm/original/1X/f5470911f15f0eddda00b40d5b2bc840de432478.png)  
 ![image](https://europe1.discourse-cdn.com/flex013/uploads/appfarm/original/1X/0ced36da013aa1caa6edc45cf1b115c8f2be9d2b.png)

---

<div class="post-metadata">

**Author:** ![kristian](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/kristian/32/58_2.png) [@kristian](https://community.appfarm.io/u/kristian)\
**Post date:** [November 23, 2023, 7:56am UTC](https://community.appfarm.io/t/bug-when-re-populating-bar-charts/867/2 "2023-11-23T07:56:27Z")

</div>

Hi!

This case sounds a bit too complex for us to be able to reproduce in an external solution. Can you provide a simple use case in a seperate App (preferably in Dev environment) and grant access to one from Appfarm? DM when this is in place.

---

<div class="post-metadata">

**Author:** ![Kaspar](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/kaspar/32/3073_2.png) [@Kaspar](https://community.appfarm.io/u/Kaspar)\
**Post date:** [February 22, 2024, 1:33pm UTC](https://community.appfarm.io/t/bug-when-re-populating-bar-charts/867/3 "2024-02-22T13:33:31Z")

</div>

Hi @kristian  
Any updates on this? We’re still experiencing the issue with the new Appfarm version

---

<div class="post-metadata">

**Author:** ![kristian](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/kristian/32/58_2.png) [@kristian](https://community.appfarm.io/u/kristian)\
**Post date:** [February 27, 2024, 8:52pm UTC](https://community.appfarm.io/t/bug-when-re-populating-bar-charts/867/4 "2024-02-27T20:52:01Z")

</div>

Hi,

Sorry, let’s continue DM on this one, as it is not a case for common interest.
