Configure Sliders or Range Sliders

As a story developer in SAP Analytics Cloud, you can configure sliders or range sliders so that viewers can input and change values dynamically and initiate what-if scenarios based on the value.

Context

The difference between a slider and range slider is that a slider defines a single value while a range slider defines a specific range of data.

Procedure

  1. To add a slider or range slider, from the toolbar select  and then Slider or Range Slider.

    You can see that the widget is added to your story with the default name Slider_1 or RangeSlider_1 displayed in Outline. You can change the name there or in the Styling panel.

  2. In the Builder panel, set values on the slider or range slider. If the source of widget values is Manual Input:
    • For a slider, enter minimum, maximum, and current values.

    • For a range slider, enter minimum, maximum, start, and end values.

    You can also use script variables, model variables, and widget filter and variables as the source of widget values. For more information, see Bind Widget Values to Variables.

  3. (Optional) Furthermore, you can select the following properties:
    • Display minimum and maximum values to display the minimum and maximum of the slider or range slider.

    • Display current value or Display start and end values to display the selected value of the slider or selected range of a range slider.

    • Enable value input to let viewers directly enter the value instead of sliding the bar.

    • Enable fixed step size to increase or decrease the value by a fixed number each step. Then for Step Size, enter a positive value.

  4. (Optional) In the Styling panel, you can define the styling properties such as color of the progress bar and background bar (the remaining part other than the progress bar), and scale, scale format and decimal places of all the numbers on the widget.
  5. You can use the following APIs to let viewers interact with the slider or range slider: