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 triggers JS error when zooming in/out and changing number of buckets

See original GitHub issue

Context

I was running some smoke tests.

Steps to Reproduce

  1. Create a map and add a layer with some features.
  2. Add an histogram widget (you can select cartodb_id as the column)
  3. 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.

cc: @noguerol @xavijam

#WD13#

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
xavijamcommented, Mar 22, 2017

Deployed!

0reactions
nobuticommented, Mar 21, 2017

Fix already merged, PR created to update dependencies.

Read more comments on GitHub >

github_iconTop 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 >

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