Histogram Not Updating
See original GitHub issueWhen 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:
- Created 3 years ago
- Comments:6
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

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?
Assign key to the component like
<section key:x><hist></hist></section>and keep updating the key whenever the event triggers.