| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
PatternFly-React preview: https://1879-pr-patternfly-react-patternfly.surge.sh |
Sorry, something went wrong.
Codecov Report
@@ Coverage Diff @@
## master #1879 +/- ##
==========================================
- Coverage 80.51% 80.48% -0.04%
==========================================
Files 650 650
Lines 8234 8238 +4
Branches 610 614 +4
==========================================
Hits 6630 6630
Misses 1308 1308
- Partials 296 300 +4
Continue to review full report at Codecov.
|
Sorry, something went wrong.
There was a problem hiding this comment.
@jcaianirh Looks like your jest test are failing.
Sorry, something went wrong.
| import React from 'react'; | ||
| import hoistNonReactStatics from 'hoist-non-react-statics'; | ||
| import { VictoryZoomContainer } from 'victory'; | ||
| import { merge } from 'lodash'; |
There was a problem hiding this comment.
Where are we picking up the lodash package? I don't see it in the react-core dependencies.
Sorry, something went wrong.
There was a problem hiding this comment.
@jcaianirh - I don't believe we currently use lodash in react-charts. We generally prefer pure es6/typescript methods instead of shelling out to a library for things like this - can you try to use native functionality instead?
Sorry, something went wrong.
|
@dlabrecq removed the ChartZoomController as we discussed and provided examples using VictoryZoomController for Bar, Line, and Stack charts. |
Sorry, something went wrong.
There was a problem hiding this comment.
The examples look good.
Just a thought... We might consider adding allowZoom prop to some components. Thus, we could add the VictoryZoomComponent for devs. If something more advanced is required, they could still override the containerComponent prop.
Sorry, something went wrong.
|
@dlabrecq I added the addZoom prop to the pf Chart component, and updated the examples to use the 'convenience' allowZoom prop to show how to use it as well as provide the more complex example using the containerComponent. |
Sorry, something went wrong.
There was a problem hiding this comment.
Looks good to me.
Just wondering if VictoryZoomContainer could be added to ChartGroup as well? Or, does this only make sense for Chart?
Sorry, something went wrong.
|
@dlabrecq at first I thought no, but now that I look at victory, they do provide an example of using ChartGroup without Chart, so I'm gonna add it in. |
Sorry, something went wrong.
|
@dlabrecq added zoom prop to chart group |
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM
Sorry, something went wrong.
…om capability on charts. fix patternfly#1715
|
@dlabrecq updated for tsx conversion. please review |
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
…om capability on charts.
fix #1715
What: Add examples on how to use VictoryZoomContainer. Add this component to the highest level Chart component as the containerComponent property to create a zoom-able chart.