Icon

05_​Using_​KNIME_​Colors_​in_​BIRT_​Report

How to use colors in reporting

Demonstrates how to use the colors defined in a KNIME Color Manager node in BIRT 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. Note that 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).

5) In BIRT: In the script to a graph element define appropriate functions to use the variables defined in step 3.

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.

In order to see the report, execute the entire workflow and then click "Open the report" button in the toolbar.

How to use Colors in reporting Demonstrates how to use the colors defined in a KNIME Color Manager in the reporting.For more information see the workflow metadata. Find it here: View -> Description Category DataColor by ProjectExtract RGBFull TableColor Table - Projecton yearColor Table - Yearconvert to RGB Hex value Table Creator Color Manager Extract Color Data to Report Data to Report Sorter Joiner Data to Report Java Snippet(simple) Column to Grid How to use Colors in reporting Demonstrates how to use the colors defined in a KNIME Color Manager in the reporting.For more information see the workflow metadata. Find it here: View -> Description Category DataColor by ProjectExtract RGBFull TableColor Table - Projecton yearColor Table - Yearconvert to RGB Hex valueTable Creator Color Manager Extract Color Data to Report Data to Report Sorter Joiner Data to Report Java Snippet(simple) Column to Grid

Nodes

Extensions

Links