-
Notifications
You must be signed in to change notification settings - Fork 15
Feat/stacked column chart react #78
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
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good 👋 Left some comments ;)
00b137f
to
70cf3b5
Compare
packages/ez-dev/jest/snapshots/components/addons/Tooltip.spec.tsx.snap
Outdated
Show resolved
Hide resolved
@@ -37,7 +62,15 @@ export const Bars: FC<BarsProps> = ({ xDomainKey, yDomainKey, ...rest }) => { | |||
isRTL, | |||
]); | |||
|
|||
return ( | |||
return scopedSlots && scopedSlots.default ? ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return scopedSlots && scopedSlots.default ? ( | |
return <g className="ez-bars" {...rest}>CONDITION</g> |
return ( | ||
<g {...rest}> | ||
{yDomainKeys.map((yDomainKey) => { | ||
// @ts-ignore |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To remove ?
const StackedColumnArguments = { | ||
...defaultArguments, | ||
yAxis: { | ||
domainKeys: ['value1', 'value', 'value2'], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
domainKeys: ['value1', 'value', 'value2'], | |
domainKeys: ['value', 'value1', 'value2'], |
<ColorScale domain={yAxis.domainKeys} range={colors}> | ||
{activeDomainKeys.map((activeDomaiKey) => { | ||
return ( | ||
// we need to find a way to sort the the data columns so that it shows bars in the corret manner |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// we need to find a way to sort the the data columns so that it shows bars in the corret manner | |
// We need to find a way to sort the the data columns so that it shows bars in the corret manner |
}} | ||
> | ||
<ColorScale domain={yAxis.domainKeys} range={colors}> | ||
{activeDomainKeys.map((activeDomaiKey) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
{activeDomainKeys.map((activeDomaiKey) => { | |
{activeDomainKeys.map((activeDomainKey) => { |
// we need to find a way to sort the the data columns so that it shows bars in the corret manner | ||
<Bars | ||
xDomainKey={xAxis.domainKey} | ||
yDomainKey={activeDomaiKey} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yDomainKey={activeDomaiKey} | |
yDomainKey={activeDomainKey} |
packages/ez-react/tests/unit/recipes/column/StackedColumnChart.spec.tsx
Outdated
Show resolved
Hide resolved
shapeDatum.height > | ||
previousShapeData[index].height |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shapeDatum.height > | |
previousShapeData[index].height | |
index > 0 |
packages/ez-dev/jest/snapshots/recipes/column/StackedColumnChart.spec.tsx.snap
Outdated
Show resolved
Hide resolved
packages/ez-dev/jest/snapshots/recipes/column/StackedColumnChart.spec.tsx.snap
Show resolved
Hide resolved
…ara:Hexastack/eazychart into feat/StackedColumnChart-react
…ara:Hexastack/eazychart into feat/StackedColumnChart-react
Created a new chart recipe called

StackedColumnChart
.Note: if the review goes well, I will add the proper unit test for it and then continue my way on adding this recipe to the Vue package. (will probably use the same branch for the React unit tests)