File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
packages/shared/charts/src/hooks Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -206,8 +206,16 @@ function extractDataPoints(
206206 const x = xValue . get ( item ) ;
207207 const y = yValue . get ( item ) ;
208208
209- xData . push ( x . value instanceof Big ? Number ( x . value . toString ( ) ) : x . value ) ;
210- yData . push ( y . value instanceof Big ? Number ( y . value . toString ( ) ) : y . value ) ;
209+ if ( ! x . value ) {
210+ xData . push ( null ) ;
211+ } else {
212+ xData . push ( x . value instanceof Big ? Number ( x . value . toString ( ) ) : x . value ) ;
213+ }
214+ if ( ! y . value ) {
215+ yData . push ( null ) ;
216+ } else {
217+ yData . push ( y . value instanceof Big ? Number ( y . value . toString ( ) ) : y . value ) ;
218+ }
211219
212220 const tooltipHoverTextSource =
213221 series . dataSet === "dynamic" ? series . dynamicTooltipHoverText : series . staticTooltipHoverText ;
You can’t perform that action at this time.
0 commit comments