Reporting: Dynamic Chart creation

Hi,

I am a bit lost: I need to create a dynamic number of charts and tables for a report.

The number of charts depends on the number of “Type” which changes every now and then.

So for every type there needs to be a chart and a table with the subtypes in the report.

As the number of Types could be 5 or 25, how can I dynamically create the chart nodes (5 or 25) in the component?

Is that possible at all?

Thanks for any hint!

Dynamic Charts.knwf (76.7 KB)

Dont think that is possible to the best of my knowledge… think you’d have to set up the max possible number of charts and then use e.g. case switch start to only keep charts in active branches that are needed (using variable to define which port is active…)

Exception could be if you want to generate a PDF… I think reporting extension allows to loop over a component and add static pdf pages dynamically (report loop start I think?)

Thanks @MartinDDDD , that was a great hint.

A part of the workflow is working now: I can iterate over charts and diagrams and create single PDF pages out of them.

However I loose all the other content, as I need a loop over the Report component. Half way there though.

Is there a way in KNIME to stich diffrent PDFs (or Reporting “elements”) together with the Reporting extension?

There is report concatenate node I think.
Let’s say you dynamic chart sits inbetween two static reports:

  1. component with static content before dynamic charts
  2. Component inside loop for dynamic charts
  3. Component with static content after dynamic charts.

Then just concatenate them and send to report writer from there

1 Like

worked like charm, thank you @MartinDDDD :raising_hands:

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.