Open chayduk-deloitte opened 1 year ago
H1: {
label: "name",
size: "100",
// group: "community",
[NeoVis.NEOVIS_ADVANCED_CONFIG]: {
function: {
label: (node) => {
if (node.properties.name.length >= 5) {
return node.properties.name.substr(0, 5) + "..."; // 显示前5个字符加省略号
} else {
return node.properties.name; // 显示完整名称
}
},
},
},
},
Expected Behavior (Mandatory)
Should be able to prevent node size from exceeding a certain point. Node labels should be cut at a certain point and ended with an ellipsis (...)
Actual Behavior (Mandatory)
Scaling with regards to labels has no noticeable effect on node size. Long node labels completely warp the shape of the graph.
How to Reproduce the Problem
Below are the config options used for the graph. The scaling values are set to extreme levels for now to see if they have any effect on the graph.