Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

new(demo/xychart): add AreaStack, add stackOffset variable for stacks #1020

Merged
merged 1 commit into from Jan 27, 2021

Conversation

williaster
Copy link
Collaborator

馃殌 Enhancements

This updates the /xychart demo to include AreaStack added in #1019 (see images there), and also adds a toggle for stackOffset for both AreaStack and BarStack.

@hshoff @kristw

@williaster williaster added this to the 1.5.0 milestone Jan 13, 2021
@williaster williaster added this to Reviewable in XYChart via automation Jan 13, 2021
@williaster williaster mentioned this pull request Jan 13, 2021
2 tasks
@@ -720,6 +792,11 @@ export default function ExampleControls({ children }: ControlsProps) {
input[type='radio'] {
height: 10px;
}
.pattern-lines {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

this pattern-only svg currently has a non-zero height on /xychart, this fixes it.

onChange={() => setRenderBarStackOrGroup('bar')}
onChange={() => {
if (renderAreaLineOrStack === 'areastack') {
setRenderAreaLineOrStack('none');
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

previously I disabled updating renderAreaLineOrStack depending on the value of renderBarStackOrGroup, I think it's better UX if I just update the value of renderAreaLineOrStack so it's valid.

Base automatically changed from chris--xychart-stacked-areas to master January 26, 2021 22:46
@coveralls
Copy link

Pull Request Test Coverage Report for Build 513505979

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 61.749%

Totals Coverage Status
Change from base Build 513501007: 0.0%
Covered Lines: 1786
Relevant Lines: 2753

馃挍 - Coveralls

@williaster williaster merged commit a1da0b3 into master Jan 27, 2021
XYChart automation moved this from Reviewable to Done Jan 27, 2021
@williaster williaster deleted the chris--xychart-areastack-demo branch January 27, 2021 03:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
XYChart
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

3 participants