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

Data accessors for victory-chart #87

Merged
merged 5 commits into from Feb 1, 2016
Merged

Data accessors for victory-chart #87

merged 5 commits into from Feb 1, 2016

Conversation

dandelany
Copy link
Contributor

Adds data accessors to VictoryChart - see FormidableLabs/victory#84

const type = child.type && child.type.role;
if (type === "axis") {
return this.getAxisProps(child, props, calculatedProps);
} else if (type === "bar") {
return this.getGroupedDataProps(child, calculatedProps);
}
return this.getDataProps(child, calculatedProps);
return {
Copy link
Contributor

Choose a reason for hiding this comment

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

thanks for this simplification!

@boygirl
Copy link
Contributor

boygirl commented Jan 25, 2016

@dandelany LGTM. Aproved

boygirl pushed a commit that referenced this pull request Feb 1, 2016
Data accessors for victory-chart
@boygirl boygirl merged commit 8774643 into master Feb 1, 2016
@boygirl boygirl deleted the data-accessors branch February 1, 2016 00:05
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants