Configure Transformation Chart widgets - SysAdmin
Based on an XSLT transformation, the Transformation chart widgets displays statistical asset data of an asset or asset structure.
Context
The Transformation chart widget can be used on any asset page and in any context.
Prerequisites
none
Introduction
The Transformation chart widget displays statistics of an asset or asset structure. The data can be displayed as numbers or charts. Based on the transformation, the widget can show statistical data of the context widget. For example, the View history of an article. Another usage of this widget shows statistical data of asset types in the system. For example, the most viewed articles and campaigns, or the Quality gates statistics of your product information.
Configuration overview
Configure the widget in your personal workspace - Place and configure the Transformation chart widget on an asset page. This configuration is only applied to your personal workspace.
Create a widget configuration with XML - Add a configuration to an XML workspace template and assign the template to a role.
Configure the Transformation chart widget in your personal workspace
To add the widget to an asset page, switch to the developer mode in your censhare account. For more information, see The developer mode in censhare Web.
Open the asset where you want to place the widget.
Select the tab on which you want to place the widget. If you need to add a new tab, select Manage tabs from the asset menu. For more information, see Tabs in censhare Web.
In the page actions menu, select Add widget type.
In the Add widget dialog, select Chart based on a transformation and click OK.
In the widget header, click and select Configure widget.
In the Generic configuration area, define how the widget and list items in the widget are displayed on the asset page. For more information, see Generic Widget Configuration.
In the Chart area, configure the report transformation. For more information, see the Chart section below.
To save your changes to your personal workspace and close the Chart based on a transformation dialog, click OK.
Chart
In this section, you configure the report transformation and an optional toolbar transformation:
Field | Mandatory | Description |
Transformation | yes | Select a transformation from the list. The XSL template must be stored in a Transformation asset with the resource usage Chart data transformation. |
Workspace XML configuration
As a system administrator, you can create widget configurations and add them to the XML file of a workspace template. Fore more information, see Workspace templates with XML files.
The following code snippet shows the configuration schema:
<widget kind="csTransformationChartWidget">
<configuration xmlns:censhare="http://www.censhare.com/xml/3.0.0/censhare">
<transformationKey censhare:_annotation.datatype="string">[TRANSFORMATION.RESOURCE.KEY]</transformationKey>
</configuration>
</widget>
Remarks
Element / attribute | Mandatory | Description |
<widget/> | yes | References the widget this configuration is based on. For attributes and elements that can be added here, see Generic widget configuration. |
kind | yes | Select "csTransformationChartWidget". |
<configuration/> | yes | Contains the configuration of the widget. |
<transformationKey/> | no | Selects the transformation that retrieves the data and creates the output shown in the widget. The resource usage of the transformation must be Chart data transformation. |