How to Create a Visualization
To create a visualization, use one of the following methods:
-
Use the System Web Interface as described in How to Create a Visualization by Using the System Web Interface.
-
Create a JSON file in the
/usr/lib/webui/analytics/sheets/vendoror/usr/lib/webui/analytics/sheets/sitedirectory and restart thewebui/serverservice.Use one of the following methods to create the JSON file:
-
Export the file from the System Web Interface. In the System Web Interface, create a new sheet or copy and modify an existing sheet. To copy a sheet, open the sheet and select the Duplicate & Edit option from the Sheet Actions menu. Modifications that you make in the System Web Interface are saved in your user preferences file (
/var/user/user-name/webui/preferences/solaris.json) and only you can view them. From the Sheet Actions menu, select the Export option to save the JSON description of the sheet in the/usr/lib/webui/analytics/sheets/vendoror/usr/lib/webui/analytics/sheets/sitedirectory so that all users can view it. -
Write the JSON code yourself using the following resources:
-
The
analytics(5) man page -
The
/usr/lib/webui/analytics/sheets/analytics-import.schema.jsonJSON schema file -
Sheet definitions in
/usr/lib/webui/analytics/sheets/solaris -
Examples in later chapters in this guide
-
-