Renders a Sankey flow diagram using Chart.js with the chartjs-chart-sankey plugin, with node colours drawn from the active colour palette.
Sankey — set as ReportType in def_report.
def Render(self, Param1="", Param2="", Param3="") -> str:
Returns HTML containing a <canvas> element and an inline <script> that initialise a Chart.js Sankey chart. The query must return three columns per row: from node name, to node name, and numeric flow value. Rows where to is empty are skipped. Node colours are assigned sequentially from the active colour palette (cycling through 10 colours). Palette values are fetched via get_palette().
Requires chart.js and https://cdn.jsdelivr.net/npm/chartjs-chart-sankey. The canvas is constrained to max-width: 100%; max-height: 300px.