"If a worker wants to do his job well, he must first sharpen his tools." - Confucius, "The Analects of Confucius. Lu Linggong"
Front page > Programming > Visualize the preferences of cats

Visualize the preferences of cats

Published on 2024-11-08
Browse:822

Occasionally, I saw an article named "Why do cats...?", which analyzed some preferences and behaviors of cats. The visual design in it attracted me very much. Its feature was the use of hand-drawn style and bubble-like layout. Besides, the lovely font was also pleasing. I like cats very much. I have a cat named Guagua (meaning cute and silly). Similarly, I am a front-end developer. I developed a graph visualization framework named AntV G6. Therefore, I thought I could achieve a similar design through this framework, and it turned out that I did!

Visualize the preferences of cats

G6 is based on a rendering engine named G. It provides a plugin that can convert shapes into a hand-drawn-like style (essentially based on roughjs).

Visualize the preferences of cats

Moreover, I used the pack layout provided by d3-hierarchy. Thanks to the registration mechanism of G6, it is very easy to access various third-party libraries.

Visualize the preferences of cats

The complete example can be seen at Why do cats?.

If you like it, welcome to give my project a star. It is very important to me.

Release Statement This article is reproduced at: https://dev.to/iaaron/visualize-the-preferences-of-cats-14al?1 If there is any infringement, please contact [email protected] to delete it
Latest tutorial More>

Disclaimer: All resources provided are partly from the Internet. If there is any infringement of your copyright or other rights and interests, please explain the detailed reasons and provide proof of copyright or rights and interests and then send it to the email: [email protected] We will handle it for you as soon as possible.

Copyright© 2022 湘ICP备2022001581号-3