---
layout: typedoc
title: 'Viewer | @msrvida/sanddance'
---
Class Viewer
Instantiate a new Viewer.
Parent HTMLElement to present within.
Optional viewer options object.
Color contexts. There is only one color context until data is filtered, after which colors may be re-mapped in another color context.
Index of current color context. Change this and then call renderSameLayout().
Insight object from current rendering.
Viewer options object.
Presenter which does the rendering.
Behavior specified by the visualization type.
Vega specification.
Vega View instance.
Default Viewer options.
Set one data row to the active state.
Deactivate item.
Removes any selection.
Filter the data and animate.
Filter expression, see https://vega.github.io/vega/docs/expressions/
Optional flag to apply to entire dataset. A false value will apply the filter upon any existing filter.
Gets column stats from current data (filtered or all).
Column to get stats for.
Gets the current insight with signal values.
Gets the current selection.
Gets current signal values.
Render data into a visualization.
Object to create a visualization specification.
Array of data objects.
Render the same layout with new options.
New options object.
Remove any filtration and animate.
Select cubes by a filter expression.
Filter expression, see https://vega.github.io/vega/docs/expressions/
Component to view a SandDance data visualization.