Histogram triggers JS error when zooming in/out and changing number of buckets
See original GitHub issueContext
I was running some smoke tests.
Steps to Reproduce
- Create a map and add a layer with some features.
- Add an histogram widget (you can select
cartodb_id
as the column) - Change the number of buckets, zoom in an out and change number of buckets in between.
Current Result
There’s a JS error in the console:
Uncaught TypeError: Cannot read property 'max' of undefined
at N.d._getMaxValueFromBinIndex (common_editor3.js:12)
at N.d._calculateDataDomain (common_editor3.js:12)
at N.d._generateFillGradients (common_editor3.js:12)
at N.d._setupFillColor (common_editor3.js:12)
at N.d._onChangeData (common_editor3.js:11)
at s (vendor_editor3.js:38)
at r (vendor_editor3.js:38)
at m (vendor_editor3.js:38)
at N.d.k.trigger (vendor_editor3.js:38)
at N.d.set (vendor_editor3.js:38)
I found this error in track.js too -> https://my.trackjs.com/messages/filtered?hash=238bd01efd1edeab
Expected result
Histogram works like a charm and there’re no JS errors.
#WD13#
Issue Analytics
- State:
- Created 7 years ago
- Comments:7 (7 by maintainers)
Top Results From Across the Web
Add zooming to the histogram dashboard · Issue #405 - GitHub
I tried changing the bin_edges in the HistogramProto so that each bin has approximately the same count, but that didn't change anything when ......
Read more >Fixing the Most Common Problem With Plotly Histograms
This graphic shows you the behavior of a Plotly histogram if you zoom into a specific region. What you can see is that...
Read more >tools/metrics/histograms/histograms_xml/others ... - Google Git
The analyzer creation error code. Logged each time analyzer creation fails,. at most once per processed stability debug file. </summary>. </histogram>.
Read more >Composite aggregation | Elasticsearch Guide [8.5] | Elastic
This aggregation provides a way to stream all buckets of a specific aggregation, similar to what scroll does for documents. The composite buckets...
Read more >How to trigger iPhone zoom-out after auto zoom-in to a form?
If the input's font-size is a minimum of 16px the zoom in will not be triggered to begin with.
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 FreeTop 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
Top GitHub Comments
Deployed!
Fix already merged, PR created to update dependencies.