The following snippets are examples of how to modify how missing data is shown on a table using Table JavaScript via a custom rule.
Changing the symbol
Show a "-" instead of "NaN" for missing values on tables.
table.showMissingAs('-');
See also
- Table JavaScript and Plot JavaScript for an explanation of how to run this code.
- Table JavaScript and Plot JavaScript Reference for technical information.
- Table JavaScript and Plot JavaScript Examples Library for other examples.
- JavaScript for information about the JavaScript programming language.
- QScript for tools for automating projects using JavaScript.
- JavaScript Variables for detail on how to create new variables.