You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When all points have the same z (bubbleProperty, or whatever) value, then the svg paths get given NaNs. It appears this is due to a division by zero because the breadth of the z domain is zero.
Just editing the example from the docs, you can observe this behaviour:
<VictoryCharttheme={VictoryTheme.material}domain={{x: [0,5],y: [0,7]}}><VictoryScatterstyle={{data: {fill: "#c43a31"}}}size={7}bubbleProperty="z"data={[{x: 1,y: 2,z: 3},// Change this z to 4 and it renders{x: 2,y: 3,z: 3},{x: 3,y: 5,z: 3},{x: 4,y: 4,z: 3},{x: 5,y: 7,z: 3}]}/></VictoryChart>
I don't know the best course of action for this - whether to use the minBubbleSize for these points, or pick the average of the min and maxBubbleSize.
Thoughts?
The text was updated successfully, but these errors were encountered:
When all points have the same
z
(bubbleProperty
, or whatever) value, then the svgpath
s get givenNaN
s. It appears this is due to a division by zero because the breadth of the z domain is zero.Just editing the example from the docs, you can observe this behaviour:
I don't know the best course of action for this - whether to use the
minBubbleSize
for these points, or pick the average of themin
andmaxBubbleSize
.Thoughts?
The text was updated successfully, but these errors were encountered: