question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Histogram Not Updating

See original GitHub issue

When passing an array of data to the histogram it doesn’t update visually. Inspecting the histogram object does in fact show the data in place.

created() { let locations = this.$store.getters['map/activeLocations'] for (let location in locations) { this.data.push(locations[location].price) }

This pulls my location data and writes it to ‘data’ which is in a reactive state. Should I be pushing the data into the vue-histogram-slider a different way? I can inspect the histogram object and view the data I just pushed into it, yet the histogram bars do not update.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
stevegiorgicommented, Mar 2, 2021

If anyone else has faced a similar issue – this was a reactivity issue, but I wasn’t sure why or how. I ended up adding a key to the component, and a method to update that key. This method was then placed/fired after the data is pushed into the component.

I may be incorrect, but isn’t this a reactivity issue with the component itself?

0reactions
nilay036commented, Apr 19, 2022

Assign key to the component like <section key:x><hist></hist></section> and keep updating the key whenever the event triggers.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why is my Excel histogram graph not working? Bin range is ...
In answer to your original question, you need to define your bin size to reflect the complete range of your data.
Read more >
D3js Updating Histogram elements not working (General ...
If you see the top right, there is a section. Where you can click on Show Distribution. Then you'll be able to see...
Read more >
[Fixed!] Excel Histogram Bin Range Not Working - ExcelDemy
This article discusses three simple, easy-to-follow, and effective solutions to fix the issue of bin range not working in Excel histogram.
Read more >
Level's Histogram not updating. - Affinity | Forum
Issue/situation: Sometimes when I add a level adjustment, the Histogram does not update when changing values. This issue does not seem to be ......
Read more >
Histogram does not update when empty array passed as new ...
Expected behaviour When a histogram is updated from having data to having none, it should update to match what appears when the histogram...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found