Using KNIME Colors in BIRT Report

Demonstrates how to use the colors defined in a KNIME Color Manager in the reporting.

1) In KNIME: Define colors in Color Manager
2) In KNIME: Extract colors from color model and send color table to BIRT/Reporting
3) In Birt: Define "onFetch" script on color data set from step (2)
This will put the a color key-value pair (class->colorID) into a PersistentGlobalVariable
(Birt calls JavaScript during report generation)
4) In Birt: Use a dummy/hidden text element as first report element to access the
color table (will subsequently run the "onFetch" script on the data set from step (3))
(Details on step (3) and (4) can be found here: http://www.birt-exchange.org/org/forum/index.php/topic/12466-iterate-ro…
5) In Birt: In the script to a graph element define appropriate functions to use the variables
defined in step (3), see details here: http://www.birt-exchange.org/org/devshare/designing-birt-reports/1120-u…

Note, this is rather complicated but the only solution that seems to be doable. KNIME and the BIRT are two independent components, whereby KNIME really only serves as a data provider to BIRT. Taking dynamic control on the coloring in a bar chart does not seem to be an easy task in plain BIRT either (see birt-exchange for details).

Using KNIME Colors in BIRT Report

 

Resources

EXAMPLES Server: 05_Reporting/01_BIRT/05_Using_KNIME_Colors_in_BIRT_Report05_Reporting/01_BIRT/05_Using_KNIME_Colors_in_BIRT_Report*
Download a zip-archive

 

 


* Find more about the Examples Server here.
The link will open the workflow directly in KNIME Analytics Platform (requirements: Windows; KNIME Analytics Platform must be installed with the Installer version 3.2.0 or higher). In other cases, please use the link to a zip-archive or open the provided path manually