Closed ssh-randy closed 1 year ago
hey @ssh-randy, this is an error I have already noticed as well. According to the documentation, you can use the shape of the node to determine where the label is displayed: The label is the piece of text shown in or under the node, depending on the shape.
Can you experiment a bit with it and let me know with which shape it works?
@ssh-randy , i tested your scenario and actually I forgot to add the label on the node as property. So if you do the following:
nodes.append(Node(id=node["hero"], title=node["link"], label=node["hero"], shape="circularImage", image=node["img"])) #circularImage
you would get the labels on the node. Please notice as I said above, depending on the shape of the node determines where the label will be displayed. Does this solve your issue?
EDIT: Please update to 0.0.42
Was experimenting around with this library when I found an issue introduced in version 0.0.40. Works in 0.0.37, screenshots below. Seems like some change made in version 0.0.40 causes nodes to not display labels. Unsure if it's actually because of configs or not, might be that some node properties can hardcoded (configs don't seem to work, even though the default label is supposed to be id).
code sample showing how I passed in the configs (same code ran on both versions):