Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unhandled promise rejection TypeError: "maxbest is undefined" #3856

Open
brylie opened this issue May 30, 2019 · 2 comments
Open

Unhandled promise rejection TypeError: "maxbest is undefined" #3856

brylie opened this issue May 30, 2019 · 2 comments

Comments

@brylie
Copy link

brylie commented May 30, 2019

Issue Summary

When configuring a line chart in the Visualization Editor, I am getting a console error when changing chart configuration under the following circumstances:

  • preview chart is < 600px (e.g. with devtools open in right column)
  • legend is enabled (disabling legend makes error go away)
  • selecting group by category
Unhandled promise rejection TypeError: "maxbest is undefined"
    getAutoRange autorange.js:173
    doAutoRange autorange.js:244
    doAutoRangeAndConstraints subroutines.js:582
    doAutoRangeAndConstraints plot_api.js:344
    positionAndAutorange plot_api.js:327
    syncOrAsync index.js:390
    plot plot_api.js:385
    call registry.js:221
    doAutoMargin plots.js:1809
    supplyDefaults plots.js:477
    plot plot_api.js:152
    call registry.js:221
    layoutReplot subroutines.js:493
    syncOrAsync index.js:390
    relayout plot_api.js:1727
    update index.js:49
    updateLayout utils.js:866
    run es6.promise.js:75
    notify es6.promise.js:92
    flush _microtask.js:18
es6.promise.js:110

Steps to Reproduce

  1. Choose Chart Type -> Line
  2. Select X, Y, and Group by columns
  3. toggle the legend

Technical details:

  • Redash Version: b27df21
  • Browser/OS: Firefox 67.0, Kubuntu 19.04
  • How did you install Redash: development environment with Docker
@kravets-levko
Copy link
Collaborator

Thanks! Can you please reproduce this on our preview instance?

@brylie
Copy link
Author

brylie commented May 30, 2019

Well, using the following query, the grouped line chart doesn't even render. However, there isn't an error in the browser console.

select case
     when Author_Username in ('arikfr', 'ranbena', 'kravets-levko', 'rauchy', 'gabrieldutra', 'kocsmy') then 'Redash'
     when Author_Username in ('jezdez', 'emtwo', 'washort', 'kyoshidajp', 'ariarijp', 'deecay', 'denisov-vlad') then 'Maintainer'
     else 'Contributor'
end as author_group, count(0),
"Date"
from query_105
group by 1
order by 2 desc

Screenshot_20190531_000458

Screenshot_20190531_000518

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants