Skip to content

Commit b7fffb0

Browse files
committed
2 parents e856cc3 + 824c308 commit b7fffb0

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/ggplot/Internal/layers/layer3/ggplotScatter3d.vb

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -122,12 +122,9 @@ Namespace layers.layer3d
122122
Dim nsize As Integer = x.Length
123123
Dim colorList As Func(Of Integer, String)
124124
Dim shape = If(Me.shape, LegendStyles.Circle)
125-
126-
If value.IsNullOrEmpty Then
127-
value = 0.0.Replicate(x.Length).ToArray
128-
End If
129-
130-
Dim size As Single() = Me.size.getSizeValues(value).ToArray
125+
Dim size As Single() = Me.size _
126+
.getSizeValues(If(value.IsNullOrEmpty, 1.0.Replicate(n:=x.Length).ToArray, value)) _
127+
.ToArray
131128

132129
If colors.IsNullOrEmpty Then
133130
' default black

0 commit comments

Comments
 (0)