Apply "top to bottom direction" to yaml and json visualization

+2 votes
asked Feb 16, 2022 in Wanted features by Tim
edited Feb 17, 2022

Thanks for providing great visualizations of YAML and JSON yes

With some nested YAML and JSON, the results become very wide, and I'd like the possibility to make the visualization fit better.

The current functionality is that changing the direction on diagrams that embed YAML and JSON does not affect the YAML or JSON visualization (which is always left to right direction), while it does affect the rest of the diagram, as seen when modifying the Self Descriptive Example on the preprocessing JSON page (https://plantuml.com/preprocessing-json) 

One way the goal could be supported, is by being able to selectively change the orientation of the YAML or JSON visualization to use "top to bottom direction" or not, without affecting the overall chart, to make it fit better.

Best regards!

/edit: Updated title and text to reflect my new understanding that the YAML and JSON visualization is currently always left to right direction, and it would be good to make it go top to bottom.

commented Feb 16, 2022 by The-Lu (63,920 points)

Hello T.,

Is that YAML and JSON diagrams are currently already always in `left to right direction` mode.

See example on the doc:

Regards.
commented Feb 16, 2022 by The-Lu (63,920 points)

Ah! I now understand... 

As JSON and YAML diagram are natively in `left to right direction`
Then could you change the title, as it:

Apply "top to bottom direction" to YAML and JSON visualization

commented Feb 17, 2022 by Tim
Yes, you are absolutely correct. I've updated the title, and fixed the original question also based on my new understanding of the proper question to ask.

Thanks!
commented Jun 10, 2022 by qwertyberty
Is there any more movement on this feature? I would also like to see json represnted top to bottom

1 Answer

0 votes
answered Oct 17, 2022 by T
I count on it too :)

Cheers
...