-
Notifications
You must be signed in to change notification settings - Fork 615
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
Replace plotly line chart with pf-react area chart #1448
Replace plotly line chart with pf-react area chart #1448
Conversation
Thanks @TheRealJon. This is looking really good. Since we have now started using React Hooks (#1456), I'm thinking it probably makes sense use them here? |
b5cdd17
to
e4c1f98
Compare
e4c1f98
to
2300069
Compare
@spadgett I think this is ready for review now |
/retest |
4a15a86
to
51cb9e9
Compare
@spadgett I think this is ready for review. It will probably fail CI because of patternfly/patternfly-react#1898, but once that issue is fixed upstream this should be good to go. I have a PR open to fix the issue, so it shouldn't be long. |
Found a bug with the chart titles. I removed the css that center aligned them, but that breaks the |
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.
Nice work on this 👍
@TheRealJon is this the patternfly/react-charts problem you mentioned?
|
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, we just need to get the pf charts to compile
Sorry, missed this comment, but yes, this was the typescript error we were seeing from pf react-charts |
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.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: spadgett, TheRealJon The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Replaces the
Line
chart component withArea
component which uses pf-react ChartArea. Uses composition instead of inheritance to get Prometheus data. Old line chart implementation is still available asLine
component.