Add viewers for output dataframes
You can specify viewers to review output dataframes in a human-friendly way.
Each dataframe parameter may have a list of viewers.
For instance, the following code adds Scatter plot
and Line chart
viewers on the input dataframe.
You may see all available viewers opening demo dataframe and opening the toolbox on the left.
Fantastic viewers and where to find them
- Result
- Code
//name: Adding viewer on output dataframe
//language: javascript
//sample: demog.csv
//input: dataframe inputDF
//output: dataframe outputDF { viewer: Line chart | Scatter plot }
outputDF = inputDF
outputDF.name = "DF with linechart"
tip
The default script view supports viewers for output dataframes only. You may specify viewers input dataframes using advanced UI editor