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

Contour plot "undefined" label when z >= 10 million #2420

Closed
ollierob opened this issue Feb 28, 2018 · 1 comment · Fixed by #2422
Closed

Contour plot "undefined" label when z >= 10 million #2420

ollierob opened this issue Feb 28, 2018 · 1 comment · Fixed by #2422
Labels
bug something broken

Comments

@ollierob
Copy link

ollierob commented Feb 28, 2018

When contour z-points are greater than 10 million then the tooltip value is suffixed with "undefined".

The suffix should be B or a multiple of 10M or it should render with an exponent. It should also be implemented for even larger values (1e8+).

var data = [ {
    z: [
        [1e6, 5e6, 1e7, 1.5e7],
        [1.2e6, 5.6e6, 1.1e7, 1.6e7]
    ], type: 'contour'
}];
Plotly.newPlot('myDiv', data);

undefined

@alexcjohnson alexcjohnson added the bug something broken label Feb 28, 2018
@alexcjohnson
Copy link
Collaborator

Thanks for the report!

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

Successfully merging a pull request may close this issue.

2 participants