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 Transformation chart widget in your personal workspace

  1. 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.

  2. Open the asset where you want to place the widget.

  3. 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.

  4. In the page actions menu, select Add widget type.

  5. In the Add widget dialog, select Chart based on a transformation and click OK.

  6. In the widget header, click  and select Configure widget.

  7. 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.

  8. In the Chart area, configure the report transformation. For more information, see the Chart section below.

  9. 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. For 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>
CODE


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.