This does sound very interesting. I started playing with https://two.js.org/ for a browser game but the event system proved a challange. The typescript focus also looks promising. Will give it a try.
Show HN: A JavaScript library for data visualization in both SVG and Canvas
11–20 of 44 posts
Re: Show HN: A JavaScript library for data visualization in both SVG and Canvas
#12there are quite literally at least 20 JavaScript data visualization libraries, many with years of maturity. Are there any particular reasons I should stake my personal usage on your library going forward over any of the others besides the "modern API"? you mentioned you wish you could go full-time on this… How do you foresee this becoming competitive or differentiated from all of the others?
Re: Show HN: A JavaScript library for data visualization in both SVG and Canvas
#13edit: actually the web page too https://ripl-alpha.vercel.app/ - if your project render things to the screen, I want to see it!
Re: Show HN: A JavaScript library for data visualization in both SVG and Canvas
#14Re: Show HN: A JavaScript library for data visualization in both SVG and Canvas
#15Earlier quoted context omitted.
I should stake my personal usage Nobody is asking you to do that, you can assess that for yourself if you're interested in looking at the project, if not, there's not much point subjecting the author to this sort of interrogation.
Consider it rephrased in a way that doesn’t upset you, like “what do you think the advantages of your new library are that outweigh the years of development behind existing libraries?”
Re: Show HN: A JavaScript library for data visualization in both SVG and Canvas
#16The demo needs some work on mobile phones. Doesn't even show up unless I put my phone in landscape mode.
Re: Show HN: A JavaScript library for data visualization in both SVG and Canvas
#17If a focus is on performance, would you consider doing a side-by-side with other similar libs?
This benchmark was posted on HN a few years back, for example: https://benchmarks.slaylines.io/ (from https://news.ycombinator.com/item?id=23083730)
Or something like the bunnymarks for Pixi (https://www.goodboydigital.com/pixijs/bunnymark/) and Konva (https://konvajs.org/docs/sandbox/Jumping_Bunnies.html)
Your charts examples are kinda hard to compare with because the animations are so slow (not the fault of the lib, they're just slowly drawn to show the animations, I know, but it makes comparisons difficult.)
----------
In general, your lib reminds me a lot of Konva. I found their examples page to be really helpful in illustrating higher-level usage: https://konvajs.org/docs/sandbox/index.html
Maybe real-world use cases like that could be helpful for yours too? As it is, the readme doesn't make it super clear why it's preferable to any of the other existing libs yet. There are already so many, each with strengths and weaknesses... what sets yours apart?
For example, I don't know why "rendering to both Canvas and SVG" is a selling point in particular. Are there platform-specific reasons (native?) to prefer one over the other, as opposed to whatever a particular lib's implementation might be? Is there a use case where mixing and matching the two might be helpful?
Re: Show HN: A JavaScript library for data visualization in both SVG and Canvas
#18The readme needs some SVGs (you can embed graphics on github's readme) edit: actually the web page too https://ripl-alpha.vercel.app/ - if your project render things to the screen, I want to see it!
Re: Show HN: A JavaScript library for data visualization in both SVG and Canvas
#19Hey there, If a focus is on performance, would you consider doing a side-by-side with other similar libs? This benchmark was posted on HN a few years back, for example: https://benchmarks.slaylines.io/ (from https://news.ycombinator.com/item?id=23083730 ) Or something like the bunnymarks for Pixi ( https://www.goodboydigital.com/pixijs/bunnymark/ ) and Konva ( https://konvajs.org/docs/sandbox/Jumping_Bunnies.html ) Y…
Re: Show HN: A JavaScript library for data visualization in both SVG and Canvas
#20Somehow we’ve almost completely lost the art of offscreen rendering, which is so much more useful for things like mail, documents, etc.