Skip to main content
Version: 26.2.0

newMuzeInvalidValue

newMuzeInvalidValue() creates a new invalid/null data value with a custom display string for use in Muze data models.

const { newMuzeInvalidValue } = viz;
newMuzeInvalidValue(value)

Parameters:

PropertyTypeRequiredDescription
valuestringtrueThe string to display for the invalid value

Returns: MuzeDatum - A Muze invalid value with the specified display string

Basic Usage

// Create a custom invalid value
const { newMuzeInvalidValue } = viz;
const customInvalid = newMuzeInvalidValue('N/A');