SankeyDiagram Class =================== .. php:class:: SankeyDiagram .. php:method:: addDataset(array ...$Dataset) Add Dataset(s) Each dataset is a three element array of the form array{string, string, float}. The elements are: source, target, value. :param Dataset ...$Dataset: The Dataset(s) :returns: A new instance of ``SankeyDiagram`` with the Dataset(s) added :rtype: SankeyDiagram .. php:method:: render(array $attributes = []) Renders the diagram :param array $attributes: HTML attributes for the
 tag as name=>value pairs

            .. note:: The *mermaid* class is added

        :returns: Mermaid diagram code in a 
 tag
        :rtype: string

    .. php:method:: withComment(string $comment)

        Add a comment

        :param string $comment: The comment
        :returns: A new instance of ``SankeyDiagram`` with the comment
        :rtype: SankeyDiagram

    .. php:method:: withDataset(array ...$Dataset)

        Set Dataset(s)

        Each dataset is a three element array of the form array{string, string, float}.
        The elements are: source, target, value.

        :param Dataset ...$Dataset: The Dataset(s)
        :returns: A new instance of ``SankeyDiagram`` with the Dataset(s)
        :rtype: SankeyDiagram