Skip to content

Don't override custom domain set on x/yScale option#399

Open
theefer wants to merge 1 commit intoshutterstock:mainfrom
theefer:custom-domain
Open

Don't override custom domain set on x/yScale option#399
theefer wants to merge 1 commit intoshutterstock:mainfrom
theefer:custom-domain

Conversation

@theefer
Copy link

@theefer theefer commented Feb 24, 2014

I'm graphing data with sparse datapoints, but I want to fix the domain of the graph to match a given query, rather than discovering the domain based on the presence of data points.

For that, I had to use a custom xScale. The current code overrides the domain and range of the custom xScale though, so this PR changes the code to only override the domain if it wasn't set externally.

There might be a better way to do this, but that was the simplest I found. Feedback welcome!

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