# MatchValue Formatter

This formatter accepts a list of potential matches and a defaultValue (if no match is found) as the config.

It maps each element in the DataSeries to find a corresponding matched value and returns the matched value if found, or the defaultValue if present.
Otherwise if neither are present, it returns the original value.

The asterisk (`*`) character can be used as a wildcard in match values to represent any number of characters in a string. It can be placed anywhere within the string. Matching prioritizes exact values, followed by values with more common characters.
If multiple match values share the same length and number of wildcards, they will be matched according to their order of entry.

For example, given the match values `["vis*, "*ual"]`, the string `"visual"` would match `"vis*"`.

@extends AbstractFormatter<DataType, DataType>
