You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 10, 2021. It is now read-only.
Describe the bug
The property Point Color using a string field as a Dimension results in a Legend with NaN values in deck.gl Scatterplot
To Reproduce
Steps to reproduce the behavior:
Build a deck.gl Scatterplot chart
Click on Point Color
Select 'Original value' and choose a string as dimension
See error NaN in Legend
Expected behavior
Selecting 'Original value' as Legend format must bypass D3 formatting and print the string Dimension categories as is.
Environment (please complete the following information):
superset-ui version: [Version: 0.999.0dev]
Additional context
When 'Original value' is selected, this.props.format = '~g'. In formatCategoryLabel() only checks if !this.props.format to return unformatted values.
A workaround, as suggestion, is to change
The codebase on this repo has been moved to the main Apache Superset repo, and consequently the repo is in the process of being archived. See the Superset Improvement Proposal for details: apache/superset#13013 . While all currently open issues and PRs will be closed, we encourage you to reopen this issue on the main repo if it is still relevant.
Describe the bug
The property Point Color using a string field as a Dimension results in a Legend with NaN values in deck.gl Scatterplot
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Selecting 'Original value' as Legend format must bypass D3 formatting and print the string Dimension categories as is.
Environment (please complete the following information):
Additional context
When 'Original value' is selected, this.props.format = '~g'. In formatCategoryLabel() only checks if !this.props.format to return unformatted values.
A workaround, as suggestion, is to change
superset-ui-plugins-deckgl/packages/superset-ui-legacy-preset-chart-deckgl/src/components/Legend.jsx
Line 58 in d081d53
if (!this.props.format || this.props.format==='~g') {
The text was updated successfully, but these errors were encountered: