Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix cursorcontainer examples
  • Loading branch information
Burnett2k committed Feb 8, 2024
commit fbd390f7296762b2af1461357cb78f64bd82d946
15 changes: 1 addition & 14 deletions demo/ts/components/victory-cursor-container-demo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,6 @@ class App extends React.Component<any, VictoryCursorContainerStateInterface> {
containerComponent={
<VictoryCursorContainer
cursorLabel={({ datum }) => round(datum.x, 2)}
cursorDimension="x"
defaultCursorValue={1}
/>
}
Expand All @@ -173,20 +172,8 @@ class App extends React.Component<any, VictoryCursorContainerStateInterface> {
<VictoryScatter
style={{
parent: chartStyle.parent,
data: {
fill: ({ active }) => (active ? "tomato" : "black"),
},
}}
containerComponent={
<VictoryCursorContainer
style={{
stroke: "tomato",
strokeWidth: 2,
fill: "tomato",
fillOpacity: 0.1,
}}
/>
}
containerComponent={<VictoryCursorContainer />}
size={({ active }) => (active ? 5 : 3)}
y={(d) => d.x * d.x}
/>
Expand Down