You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have this code:
legendGraph = GvGen("Legend")
a = legendGraph.newItem(" ")
legendGraph.styleAppend("entry1","color","green")
legendGraph.styleAppend("entry1","shape","rectangle")
legendGraph.styleApply("entry1", a)
and I get this result:
How do I put text in the box? This code:
legendGraph.styleApply("entry1", "some text")
Gives me an error "does not support item assignment"
The text was updated successfully, but these errors were encountered:
It seems you are missing to execute the function legendAppend(STYLE_NAME, DESCRIPTION, IS_LABEL_IN), such as:
legendGraph.styleAppend("entry1","color","green")
legendGraph.styleAppend("entry1","shape","rectangle")
legendGraph.styleApply("entry1", a)
legendGraph.legendAppend("entry1", "This is the text for the item", 1)
legendGraph.dot()
Cannot figure out how to get legend working.
I have this code:
legendGraph = GvGen("Legend")
a = legendGraph.newItem(" ")
legendGraph.styleAppend("entry1","color","green")
legendGraph.styleAppend("entry1","shape","rectangle")
legendGraph.styleApply("entry1", a)
and I get this result:
How do I put text in the box? This code:
legendGraph.styleApply("entry1", "some text")
Gives me an error "does not support item assignment"
The text was updated successfully, but these errors were encountered: