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

Fixes bug which mutates line(histogram) data #17

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

fredludlow
Copy link

Minor bugfix: If you pass an object for a line-type feature, the data attribute ends up being converted in to a triply-nested array. Passing in the same feature-spec again won't draw that feature (because the data[0][0] is an array, rather than the first {x:1, y:0.5} pair). This PR changes the point at which the extra layer of array is added (i.e. it doesn't change the input data in to a form that won't render).

@kwsamarasinghe kwsamarasinghe changed the base branch from master to develop June 16, 2021 14:03
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

Successfully merging this pull request may close these issues.

1 participant