Relative Content

Tag Archive for treenodeantv

Is it possible to assign distinct colors to the key and value texts within the same node when utilizing Antv g6 tree node?

For the past few weeks, I’ve been utilizing the Antv g6 custom tree node to represent the json hierarchy. Our project requires some specific customizations, particularly, we aim to display the key and value text in distinct colors to clearly differentiate between the attributes. I’m curious if there’s a way to customize this aspect, similar to how text formatting is done in the tooltip option. This would greatly enhance our ability to convey information more effectively.