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

Clean domain method #317

Merged
merged 17 commits into from
Jul 27, 2016
Merged

Clean domain method #317

merged 17 commits into from
Jul 27, 2016

Conversation

ebrillhart
Copy link
Contributor

this should help fix https://github.com/FormidableLabs/victory-chart/issues/146, #306, #299

right now this works great for everything except bar scales, which is weird because it's working with area and that's the same domain method. might be something to look at today in pairing @boygirl

return this.cleanDomain(this.padDomain(domain, props, axis), props);
},

cleanDomain(domain, props) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you can simplify this method if you add an axis argument

@boygirl
Copy link
Contributor

boygirl commented Jul 26, 2016

cc/ @ebrillhart I figured it out! We needed to replace the baseline (y0) with a very small number in these charts prior to scaling them.

@ebrillhart
Copy link
Contributor Author

@boygirl yay!! what else needs to be done on this?

@boygirl
Copy link
Contributor

boygirl commented Jul 26, 2016

@ebrillhart the y-axis labels (and possibly domain) on log scales are wrong for bar and area. You can address that in this branch or open another issue. Your pick.

@boygirl
Copy link
Contributor

boygirl commented Jul 26, 2016

@ebrillhart actually pause. I think I messed something up with horizontal bars. One moment

@boygirl
Copy link
Contributor

boygirl commented Jul 26, 2016

Okay, fixed. Sorry about that

@ebrillhart
Copy link
Contributor Author

@boygirl no prob! was the weird tick label and domain thing the aspect that we determined was a d3 issue? what would your suggestion be for a starting approach to that?

@boygirl
Copy link
Contributor

boygirl commented Jul 26, 2016

@ebrillhart please check on what's getting passed to VictoryAxis in these cases. If it's getting the domain and scale that you expect then I think it's a d3 issue with tick formatting, and we will address it in it separate issue.

@ebrillhart ebrillhart merged commit d5fc5c6 into master Jul 27, 2016
@ebrillhart ebrillhart deleted the clean-domain-method branch July 27, 2016 20:31
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.

3 participants