Example 3: Formatting data with use of the present component

Datadescription component can be used to color displayed data.
Data is formated on base of bindpoints, so data can be formated in any component that uses bindpoints in their template.
Some components integrate support for datadescription, even if they use other display technique. e.g. Worldmap3D.

VIEW-Requestor

<div id="datadescription_example3_present" swa="Present FROM ../../../data/visualisation/datadescription/example3/exampledata.json TEMPLATE table_for_all_datasets"></div>
<div id="datadescription_example3" swa="Datadescription FROM ../../../data/visualisation/datadescription/example2/description_definition.json"></div>
        
CONFIGURATION

This example does not need configuration.

DATASOURCE

This example uses the same description resource as example 2.

The data is used from other example resource:

Binding javascript:

window.swac.reactions.addReaction(function(requestors) {
    requestors['datadescription_example1'].swac_comp.formatDataElement(requestors['datadescription_example2']);
},'datadescription_example1','datadescription_example2');