Sankey diagrams

Below is displayed the structure of the dictionary contained in the JSON file used in the second case of Sankey diagram. As a reminder, the JSON file is available on GitHub. The structure has been simplified, such that only types and list of types are given as strings.


     
{
    "data": [
        {
            "type": "str",
            "domain": {
                "x": "list of int",
                "y": "list of int"
            },
            "orientation": "str",
            "valueformat": "str",
            "valuesuffix": "str",
            "node": {
                "pad": "int",
                "thickness": "int",
                "line": {
                    "color": "str",
                    "width": "float"
                },
                "label": "list of str",
                "color": "list of str"
            },
            "link": {
                "source": "list of int",
                "target": "list of int",
                "value": "list of float",
                "color": "list of str",
                "label": "list of str"
            }
        }
    ],
    "layout": {
        "title": {
            "text": "str"
        },
        "width": "int",
        "height": "int",
        "font": {
            "size": "int",
            "weight": "str",
            "style": "str",
            "variant": "str"
        },
        "updatemenus": [
            {
                "y": "int",
                "buttons": [
                    {
                        "label": "str",
                        "method": "str",
                        "args": "list of str"
                    },
                    {
                        "label": "str",
                        "method": "str",
                        "args": "list of str"
                    }
                ]
            },
            {
                "y": "float",
                "buttons": [
                    {
                        "label": "str",
                        "method": "str",
                        "args": "list of str"
                    },
                    {
                        "label": "str",
                        "method": "str",
                        "args": "list of str"
                    }
                ]
            },
            {
                "y": "float",
                "buttons": [
                    {
                        "label": "str",
                        "method": "str",
                        "args": "list of str"
                    },
                    {
                        "label": "str",
                        "method": "str",
                        "args": "list of str"
                    }
                ]
            },
            {
                "y": "float",
                "buttons": [
                    {
                        "label": "str",
                        "method": "str",
                        "args": "list of str"
                    },
                    {
                        "label": "str",
                        "method": "str",
                        "args": "list of str"
                    },
                    {
                        "label": "str",
                        "method": "str",
                        "args": "list of str"
                    },
                    {
                        "label": "str",
                        "method": "str",
                        "args": "list of str"
                    }
                ]
            },
            {
                "y": "float",
                "buttons": [
                    {
                        "label": "str",
                        "method": "str",
                        "args": "list of str"
                    },
                    {
                        "label": "str",
                        "method": "str",
                        "args": "list of str"
                    }
                ]
            }
        ]
    }
}