viz> harness
$ local dev mode
Use the sun/moon icon to toggle between light and dark mode. This changes both the harness UI and the theme reported to the visualization via getCurrentTheme(), so your viz renders in the correct mode.
When the harness is in light mode, a contrast icon appears next to the theme toggle. It drops a dark backdrop behind the viz stage only — useful for previewing a dark-themed viz without switching the whole harness (and therefore the viz's reported theme) over. The viz still receives light from getCurrentTheme(); only the stage backdrop changes.
Set exact dimensions with the width × height inputs, or click Fit to fill the available space. The visualization receives a reflow() call on resize.
These controls inject values into the Splunk-format data passed to the viz. Slider values update in real-time. Fields starting with _ are control fields (e.g., row count) that affect data generation but aren't data columns.
These mirror the viz's formatter.html settings. They map to config[ns + 'settingName'] in the viz JS. Defaults must match the JS fallback values.
harness.json alongside your viz's formatter.htmlharness-manifest.jsonNo changes to this HTML file needed.
this.drilldown() is a no-op in the mockeval() — check the console for errors$ cat TEST-HARNESS.md — full documentation including harness.json schema, data modes, and troubleshooting.