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
feat(stacked-bar-chart): Create component #988
feat(stacked-bar-chart): Create component #988
Conversation
Closes #884 |
f0ad8aa
to
f217dd9
Compare
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.
Additional notes
Overlay does not seem to work in 'mode: column'. I've tested this in the dev example you provided and it does not show up for me.
Hover styles and cursor: pointer
on the legend to indicate that it can be clicked and disabled could be added.
If an element is selected, and the data is hidden by clicking on the label, the selection stays there. Should the selection clear in this case?
Selection breaks if you follow these steps to reproduce in the given example:
- Load the example in column mode
- Select any of the other elements in the chart
- Switch
mutilple
to false - Switch
mode
tocolumn
You can no longer change the selection...
libs/barista-components/stacked-bar-chart/src/stacked-bar-chart.ts
Outdated
Show resolved
Hide resolved
libs/barista-components/stacked-bar-chart/src/stacked-bar-chart.ts
Outdated
Show resolved
Hide resolved
libs/barista-components/stacked-bar-chart/src/stacked-bar-chart.ts
Outdated
Show resolved
Hide resolved
libs/barista-components/stacked-bar-chart/src/stacked-bar-chart.ts
Outdated
Show resolved
Hide resolved
libs/barista-components/stacked-bar-chart/src/stacked-bar-chart.ts
Outdated
Show resolved
Hide resolved
libs/barista-components/stacked-bar-chart/src/stacked-bar-chart.scss
Outdated
Show resolved
Hide resolved
libs/barista-components/stacked-bar-chart/src/stacked-bar-chart.scss
Outdated
Show resolved
Hide resolved
libs/barista-components/stacked-bar-chart/src/stacked-bar-chart.scss
Outdated
Show resolved
Hide resolved
libs/barista-components/stacked-bar-chart/src/stacked-bar-chart.scss
Outdated
Show resolved
Hide resolved
libs/barista-components/stacked-bar-chart/src/stacked-bar-chart.scss
Outdated
Show resolved
Hide resolved
@tomheller About the additional notes
Also:
|
f217dd9
to
7592278
Compare
7592278
to
01bbfbf
Compare
Ok, I think it's complete now.
|
01bbfbf
to
cc8fd4f
Compare
c14e1b1
to
5882a5d
Compare
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 have tried to get the checks running in the CI. It seems that the unit test on the ci is way faster, and we may run into some timing issues, that you would not run into on your local machine.
This hints at some implementation hiccups.
This PR will have to wait until we have proper time to figure out what is wrong here. All in all it is a weird behaviour.
libs/barista-components/stacked-series-chart/src/stacked-series-chart-path.ts
Outdated
Show resolved
Hide resolved
Hi @subarroca! |
Totally fine :)
If this is not the right way to implement the overlay we should change it
too in the radial chart as I took the implementation from there
|
Good point, I will have a look at this as well . |
That these tests are failing only on the CI docker images is really a mystery to me. Thanks to @tomheller for to making an effort to figure this out! And thanks @subarroca for the patience! |
602a30e
to
2890411
Compare
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.
Thank you very much for contributing a such high quality component!
Verry well documented! :)
Please add a package.json
inside the folder with this content:
{
"ngPackage": {
"lib": {
"entryFile": "index.ts"
}
}
}
Otherwise it won't be packaged by the ngPackagr and cannot not be released.
To check if your component is build run npm run ng build components
then go to the dist folder and check out the generated bundle.
For your next contribution maybe read about the symbold ordering https://github.com/dynatrace-oss/barista/blob/master/CODING_STANDARDS.md#symbol-ordering-in-libsbarista-componentsdirectivesservices in our coding standards.
This would make reviewing a little bit easier if you group your methods and properties in the components :) and would align it with the other components.
libs/barista-components/stacked-series-chart/src/stacked-series-chart-bar.scss
Outdated
Show resolved
Hide resolved
libs/barista-components/stacked-series-chart/src/stacked-series-chart-column.scss
Outdated
Show resolved
Hide resolved
libs/barista-components/stacked-series-chart/src/stacked-series-chart-overlay.directive.ts
Outdated
Show resolved
Hide resolved
libs/barista-components/stacked-series-chart/src/stacked-series-chart.html
Show resolved
Hide resolved
libs/barista-components/stacked-series-chart/src/stacked-series-chart.scss
Outdated
Show resolved
Hide resolved
libs/barista-components/stacked-series-chart/src/stacked-series-chart.ts
Outdated
Show resolved
Hide resolved
Thanks for the reviews |
@subarroca
|
d6fb818
to
fe97f3c
Compare
Pull Request
Stacked bar chart without value axis. It should be addressed in the future
E2E are to come this week or next one
Type of PR
Feature (non-breaking change which adds functionality)
Checklist