We use a lot of smoothing in our reactive graphs, and tend to
offer both global (entire dashboard) and local (tab-specific) smoothing
options. smooth_switch
is a simple function to abstract away the
logic behind determining whether the global or local option should be
relied on.
1 | smooth_switch(global, local)
|
global |
the input variable for global smoothing. |
local |
the input variable for local smoothing. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.