Hacker News new | ask | show | jobs
by Aurornis 16 days ago
Using LLMs to build out the nice-to-haves that I’ve always wanted but never had time for is one of their great use cases. Visualizations are a perfect use case for this because they don’t have to be perfectly architected, maintainable code. Getting to the correct visual output is good enough, and LLMs excel at iterating something until it looks right.
2 comments

I agree that visualization does not need to be perfect. One issue is that "correct visual output" depends on your expertise level. A visualization that is good to teach undergrads may be frustratingly bad to experts and researchers. Standards like "looking right" depend on the audience's ability to spot nuances and how focused they are on the fine details. If you want a visualization to work for the range of people from beginners to experts, you do need to focus a bit more on what it means for something to "look right" for multiple audiences, since the errors in the fine details may hinder a visualization's usefulness for more advanced audiences.
What format do you have it build? PNG? Svg? Open document drawing? I am interested.
I mostly use HTML, but it is much more flexible than what you would assume if you leverage some standard formats instead of building everything from scratch.

Mermaid, Graphviz and friends but in HTML pages.

Sometimes it is turning other things into perfetto.dev format for multi-machine tracking (like turn a build process into the same format as Chrome traces).

If you need more flexibility, you end up reaching for p5.js and three js (rather, tell the model to use it).

Once you're touching distance from WebGL, the equivalent of something you make can start looking like something from ciechanow.ski over a single weekend.

Ty v much! I gill give those a shot. I just yoloed one using D2 after brief research. Will keep exploring those.

What is your thought on D2 compared to those? GIven the WebGL mention (The one I'm familiar with), I suspect this is a matter of interactive vs static/diagrams. I assume the latter due to my own project which falls in that category!