We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hey, i tried to export a graph which has several fields in the data-object.
The exported XML contains the nodes with the correct data fields, eg.:
<node id="a"> <data type="data" key="label">George</data> </node>
When i assigned such a label to an edge it is exported in an other format like:
<edge id="abc" source="a" target="b"> <data key="label">[object Object]</data> </edge>
The [object Object] should be also "George", but actually it isn't.
I assigned the data via (where selected is either a node or an edge):
var content = "George"; selected.data('label', content);
best regards Bastian
The text was updated successfully, but these errors were encountered:
Solved it by myself: changed line 99 from edge += '<data key="' + key + '">' + eleData[key] + '</data>'; to edge += '<data key="' + key + '">' + eleData[key].value + '</data>';
edge += '<data key="' + key + '">' + eleData[key] + '</data>';
edge += '<data key="' + key + '">' + eleData[key].value + '</data>';
Sorry, something went wrong.
@bastianleirpo I think that this problem is fixed in the PR #7. I am closing the issue. Please let me know if your problem is not totally solved.
selimfirat
No branches or pull requests
Hey,
i tried to export a graph which has several fields in the data-object.
The exported XML contains the nodes with the correct data fields, eg.:
When i assigned such a label to an edge it is exported in an other format like:
The [object Object] should be also "George", but actually it isn't.
I assigned the data via (where selected is either a node or an edge):
best regards
Bastian
The text was updated successfully, but these errors were encountered: