-
Notifications
You must be signed in to change notification settings - Fork 525
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
Audits and Adds typescript props, definitions, and demo: VictoryZoomContainer #1536
Audits and Adds typescript props, definitions, and demo: VictoryZoomContainer #1536
Conversation
2f66b9f
to
0e08423
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.
This looks good. Thanks for the rangeTuple
-> domainTuple
change, too!
a9e264c
to
ffb1577
Compare
@@ -123,7 +118,7 @@ export default class App extends React.Component { | |||
|
|||
getZoomDomain() { | |||
return { | |||
y: [random(0, 0.4, 0.1), random(0.6, 1, 0.1)] |
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.
ended up removing this since https://lodash.com/docs/4.17.15#random says the third argument should be a boolean. not sure if the 0.1
was intentional or if it should have a boolean value.
@@ -61,11 +61,6 @@ class CustomChart extends React.Component { | |||
x: [data[0].x, last(data).x] | |||
}; | |||
} | |||
getZoomFactor() { |
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.
ended up removing this uninvoked function. not sure if this should be used in the demo and somehow got missed?
…ccount for array of dates
…count for array of dates
ffb1577
to
68a8f49
Compare
CursorData
toCoordinatesPropType
VictoryBrushContainerProps
andVictoryBrushContainerDemo
to useDomainTuple
insteadRangeTuple
VictoryZoomContainerDemo
VictoryZoomContainerProps
interfaceVictoryZoomContainerProps
interface that do not belong