nl_tokens: Returns a domain from a dataset for a given axis
pl_tokens: function getDomainFromData ( props , axis , dataset ) { dataset = dataset || Data . getData ( props ) ; const { polar , startAngle = 0 , endAngle = 360 } = props ; const minDomain = getMinFromProps ( props , axis ) ; const maxDomain = getMaxFromProps ( props , axis ) ; if ( dataset . length < 1 ) { return minDomain !== undefined && maxDomain !== undefined ? getDomainFromMinMax ( minDomain , maxDomain ) : undefined ; } const min = minDomain !== undefined ? minDomain : getExtremeFromData ( dataset , axis , "min" ) ; const max = maxDomain !== undefined ? maxDomain : getExtremeFromData ( dataset , axis , "max" ) ; const domain = getDomainFromMinMax ( min , max ) ; return polar && axis === "x" && Math . abs ( startAngle - endAngle ) === 360 ? getSymmetricDomain ( <mask> , getFlatData ( dataset , axis ) ) : domain ; }