Use Custom Add-Ons in Widgets
You can use custom add-ons in SAP Analytics Cloud, which extend the predefined set of widget add-ons in stories.
You can upload custom add-ons to SAP Analytics Cloud and add them to widgets in stories to customize parts of the built-in widgets, such as adding visual elements to a chart, modifying tooltip contents and overriding the existing styling.
As a developer, you can build your own widget add-ons. For more how to develop, restrictions, hosting considerations and more, refer to SAP Analytics Cloud Widget Add-On Developer Guide.
Supported Add-On Types and Chart Types
-
Tooltip
Supported chart types exclude numeric point.
-
Plot area (general)
Supported chart types are bar/column, stacked bar/column, stacked area and line
-
Plot area (numeric point)
Supported chart type is numeric point.
Permissions
There’re the following permissions for Widget Add-On:
-
Create: Lets you upload widget add-ons to SAP Analytics Cloud.
-
Read: Lets you add widget add-ons to the widgets in your story.
-
Update: Lets you update widget add-ons.
-
Delete: Lets you delete widget add-ons from SAP Analytics Cloud.
Upload Your Widget Add-On to SAP Analytics Cloud
Upload your widget add-on to SAP Analytics Cloud so that you can add it to the widgets in your story.
Prerequisites
To upload custom add-ons, ensure that you have the permission Create for the object type Widget Add-On.
Procedure
- On the Stories start page, choose the Widget Add-Ons tab.
- Choose (Create).
- In the Create Widget Add-On from File dialog, choose Browse... under JSON File.
- Select the JSON file of widget add-on from your device.
- Choose Create.
Results
Next Steps
Every custom add-on has a version number in the format majorVersion.minorVersion.patchVersion defined in its original file, for example, 1.0.0.
You can upload different major versions of an add-on at the same time, for example, versions 1.0.0 and 2.0.0.
However, when you upload an add-on that differs in minor version from an existing one on your tenant, the former replaces the latter. For example, if a widget add-on of version 1.5.0 already exists on the tenant, then adding either version 1.4.0 or 1.6.0 replaces it.
Add Custom Add-Ons to Widgets
You can add a custom add-on to widgets in your SAP Analytics Cloud stories to customize their behavior.
Prerequisites
To add custom add-ons, ensure that you have the permission Read for the object type Widget Add-On.
Procedure
- In the story edit time, go to the widget's Builder panel.
- Scroll down in the Builder panel, and expand Custom Add-Ons.
- Make sure that Enable Custom Add-Ons is switched on so that you can add add-ons to the widget.
- Choose + Add Add-On.
- In the dialog, select an add-on that has been uploaded to your tenant:
- To further edit the add-on properties:
- Choose (Add-On Settings) next to the added add-on.
- In the Add-On Settings panel, edit the properties provided by the add-on developer, such as color.
- Choose Done to finish the settings.
Results
You've added the custom add-on to the widget. The widget displays your own add-on instead of the SAP Analytics Cloud built-in one.
You can further add add-ons of other types in the same way.
To change to another add-on of a type, in the Builder panel, remove the existing one first, and add another one.
Understand References Between Custom Add-Ons and Stories
Know about what happens when you delete a custom add-on from SAP Analytics Cloud.
When you try to delete a custom add-on from an SAP Analytics Cloud system in the Widget Add-Ons tab, if it's actively used in stories, a dialog appears, which lists all the related stories and warns you that deleting the add-on will break them.

If you choose to ignore the warning and delete the widget add-on, you'll receive an error message about loading the add-on when opening an affected story. The add-on is no longer attached to the widgets that used it, and you need to remove it in the widgets' Builder panel so that you can save the story with changes.
If you reupload the add-on after the deletion, the references between it and stories stay lost. When you open an affected story, a warning appears. To solve this, just save the story, and you can therefore repair the dependencies and no longer see the warning.