Skip to content
This repository has been archived by the owner on Feb 19, 2022. It is now read-only.

filter 0 from default x data, clean up demo #56

Merged
merged 1 commit into from
Dec 14, 2015
Merged

Conversation

boygirl
Copy link

@boygirl boygirl commented Dec 10, 2015

cc/ @coopy or @kenwheeler
@kenwheeler reported an issue where plotting a log scale chart with no data resulted in an invalid path. This was caused by the default data having zero values, which result in -Infinity when plotted on a log scale. This PR filters 0 from the default x data array so that the default data wont cause log scales to break. Data passed via props is not filtered.

I would really like to be able to introspect on the type of scale currently in use. Related issue / feature request d3/d3-scale#25

boygirl pushed a commit that referenced this pull request Dec 14, 2015
filter 0 from default x data, clean up demo
@boygirl boygirl merged commit 286024f into master Dec 14, 2015
@boygirl boygirl deleted the fixLogScaleDefault branch December 14, 2015 22:29
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant