TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Zoomable Circles, a Svelte component for hierarchical data

147 pointsby whb101about 1 year ago

16 comments

simonwabout 1 year ago
This looks really cool, but I&#x27;m going to use it as a quick illustration of a pet peeve. The README says this:<p><pre><code> &lt;script&gt; import ZoomableCircles from &quot;svelte-zoomable-circles&quot;; &lt;&#x2F;script&gt; &lt;ZoomableCircles tree={treeObject} &#x2F;&gt; </code></pre> That&#x27;s not enough information for me to use this thing!<p>As an infrequent user of JavaScript libraries it&#x27;s now on me to figure out which of the various bundlers (WebPack? Vite? esbuild? Some other thing?) are in-vogue right now, then work out the incantations needed to get the above syntax converted into code that actually runs in a browser.<p>I made extensive notes on this the other day when I tried to get quickjs-emscripten to work - I really wish I didn&#x27;t have to jump through so many hoops every time I want to try something out new in npm land: <a href="https:&#x2F;&#x2F;til.simonwillison.net&#x2F;npm&#x2F;self-hosted-quickjs" rel="nofollow">https:&#x2F;&#x2F;til.simonwillison.net&#x2F;npm&#x2F;self-hosted-quickjs</a>
评论 #39887788 未加载
评论 #39887660 未加载
评论 #39890071 未加载
skadamatabout 1 year ago
Neat way to build your own version of Amelia’s code repo visualization:<p><a href="https:&#x2F;&#x2F;githubnext.com&#x2F;projects&#x2F;repo-visualization&#x2F;" rel="nofollow">https:&#x2F;&#x2F;githubnext.com&#x2F;projects&#x2F;repo-visualization&#x2F;</a>
dv35zabout 1 year ago
(1) Check out the underlying D3 example of zoomable circles - <a href="https:&#x2F;&#x2F;observablehq.com&#x2F;@d3&#x2F;zoomable-circle-packing?intent=fork" rel="nofollow">https:&#x2F;&#x2F;observablehq.com&#x2F;@d3&#x2F;zoomable-circle-packing?intent=...</a><p>(2) Explore D3.js interactive visualization demos -<p><a href="https:&#x2F;&#x2F;observablehq.com&#x2F;@d3&#x2F;gallery" rel="nofollow">https:&#x2F;&#x2F;observablehq.com&#x2F;@d3&#x2F;gallery</a><p>I show potential clients this demo page frequently, and it never ceases to blow minds and start interesting conversations!<p>Enjoy.
dchukabout 1 year ago
This is fantastic, really cool looking library.<p>Has anyone built something like this, or possible a normal rectangular tree map, where the actual nodes in each subsection include images? I’d love to build an interactive thing like this but have it include graphical nodes with some data attributes (let’s say name, price, etc) once zoomed in.
评论 #39886571 未加载
评论 #39886587 未加载
hamburglarabout 1 year ago
Minor interaction feedback: on mobile it is often hard to drill into a group without accidentally drilling into a specific subgroup inside it. Because my thumb is too fat to find the hit target which is in the group but NOT in any of its children.
no_wizardabout 1 year ago
Looks like another D3 wrapper at its core. Which is cool! I do think D3 is great.<p>I do wonder if data visualization will ever get framework specific options. I wonder how hard it would be to re-create this in Svelte proper
评论 #39886430 未加载
keepamovinabout 1 year ago
I love this way of exploring hierarchical or tree data. Looks very useful. Hope it can scale!
评论 #39883995 未加载
yawnxyzabout 1 year ago
Here&#x27;s the Github for the demo link: <a href="https:&#x2F;&#x2F;github.com&#x2F;tylerb1&#x2F;openopensource?tab=readme-ov-file">https:&#x2F;&#x2F;github.com&#x2F;tylerb1&#x2F;openopensource?tab=readme-ov-file</a>
评论 #39891685 未加载
monocasaabout 1 year ago
Reminds me of Veratasium&#x27;s visual representation of p-adic numbers.<p><a href="https:&#x2F;&#x2F;youtu.be&#x2F;tRaq4aYPzCc?t=1514" rel="nofollow">https:&#x2F;&#x2F;youtu.be&#x2F;tRaq4aYPzCc?t=1514</a>
评论 #39887451 未加载
thunderbongabout 1 year ago
Really nice. Couple of points -<p>The link to the demo is invalid - it goes to Github.<p>Also, what&#x27;s the difference between this and the other demo you&#x27;ve linked to by Svend3r?
评论 #39883643 未加载
kingkongjaffaabout 1 year ago
Does anyone know an equivalent react based version?
评论 #39885065 未加载
评论 #39884822 未加载
cchanceabout 1 year ago
Begs the question what the performance looks like with say 3 levels and a few thousand lowest level entries
evanjrowleyabout 1 year ago
Any good tools out there for visualizing multi-dimensional hierarchies?
lloydatkinsonabout 1 year ago
Neat! I wonder if there’s a React version of this.
评论 #39886008 未加载
Lorinabout 1 year ago
Makes me wonder about visualizing graph DBs
ionelaipatioaeiabout 1 year ago
I don&#x27;t understand why this needs to be its own package, looking at the code everything seems to be implemented in the `ZoomableCircles.svelte` file which is ~200 lines long (<a href="https:&#x2F;&#x2F;www.npmjs.com&#x2F;package&#x2F;svelte-zoomable-circles?activeTab=code" rel="nofollow">https:&#x2F;&#x2F;www.npmjs.com&#x2F;package&#x2F;svelte-zoomable-circles?active...</a> - also fun fact, you can&#x27;t link a specific file from the NPM code browser tab). Writing a blog post on how to create something similar would be way more useful than this package.<p>This culture of using packages for simple things needs to die.