Renders a Sankey flow diagram using Chart.js and the chartjs-chart-sankey plugin, with each data row supplying a source node, target node, and flow value.
Sankey — set as ReportType in def_report.
def Render(self, Param1="", Param2="", Param3="") -> str:
No parameters are used. Each row in self.data_list must supply three columns: from node name (column 0), to node name (column 1), and flow value (column 2). Returns an HTML string containing a Chart.js canvas with the Sankey dataset.
| Key | Effect |
|---|---|
css |
Inline CSS string injected into the chart container element |
Requires Chart.js and chartjs-chart-sankey@0.4.0 (loaded via CDN). Node colours are assigned randomly from a hardcoded colour list; each unique node name receives a consistent colour within a single render. self._Options is read for an optional css override applied to the container <div>.