I'm trying to use a library called
flowy which is a drag and drop flowchart but I'm having trouble outputting flowchart data from a data object.
I see on the github page
flowy.output();
and
flowy.import(output)
but I'm havimg trouble implementing.
Also how can I save a flow diagram that I create?
Thanks so much!
What I have tried:
I tried making a json object to import but I don't seem to get any blocks outputted. Here is a
jsfiddle of what I'm working with.
flowy.import({
"html": "",
"blockarr": [],
"blocks": [
{
"id": 1,
"parent": 0,
"data": [
{
"name": "blockid",
"value": "1"
},
{
"id": 2,
"parent": 1,
"connector": 2,
"data": {
"name": "block-id",
"value": "2"
}
},
],
"attr": [
{
"id": "block-id",
"class": "create-flowy"
}
]
}
]
})