d3
GoJS, a JavaScript Library for HTML Diagrams
Our great sponsors
d3 | GoJS, a JavaScript Library for HTML Diagrams | |
---|---|---|
267 | 12 | |
106,276 | 7,100 | |
0.3% | 1.3% | |
9.0 | 6.8 | |
11 days ago | 14 days ago | |
Shell | HTML | |
ISC License | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
d3
-
How to use Next.js and Recharts to build an information dashboard
Recharts is a composable charting library built on React components and D3.js. It contains API’s which allow you to easily add 11 different highly configurable chart types to your React application. Recharts is one of the most popular React.js charting libraries with over 20k likes on GitHub.
-
Best heatmap libraries for React (with demos)
D3.js: The advanced option
- Ask HN: What plotting tools should I invest in learning?
-
Level Up Your Web App with Stunning React Charts: Introducing the Top 10 React Charts Libraries
Recharts is another React charting library that simplifies creating charts by providing a wide range of chart components out of the box. It is built on top of D3.js but abstracts away the complexities, making it easier for React developers to create interactive and visually appealing charts and graphs. Recharts leverage the power of SVG (Scalable Vector Graphics) for rendering, allowing charts to be scalable and fit on any screen size.
-
How to Visualize a Social Network in Python with a Graph Database: Flask + Docker + D3.js
I won't go into much detail about how to use D3.js so if you want to find out more I encourage you to visit their website. In short, we fetch all the nodes and edges from the database and add them to an SVG element. The visual representation of the graph is made by simulating how physical forces act on particles (charge and gravity). You can drag and drop the nodes, hover over them to see the value of their name property, zoom in and out of the graph and move the SVG graphic.
-
Top 10 "Must Have" Repositories for Web Developers
7. D3.js
-
Seeking After Effects Course Recommendations for Infographics and Math Animations (with Programming Background)
there's also this https://d3js.org
-
Ask HN: What packages can be used to create interactive mathematics simulations?
Well, MathML[1] support is (nearly) everywhere now, and as the docs say:
MathML Core is a subset with increased implementation details based on rules from LaTeX and the Open Font Format. It is tailored for browsers and designed specifically to work well with other web standards including HTML, CSS, DOM, JavaScript.
I don't have a lot of experience working with this stuff (yet) but if you can script your MathML objects with Javascript, you should be able to make whatever interactive "stuff" you want in terms of math notation. Now drawing objects and plots and stuff is a different question.
There's stuff like Plotly[2], D3[3], Sigma[4], etc. that might be useful depending on exactly what effects you're going for.
[1]: https://developer.mozilla.org/en-US/docs/Web/MathML
[2]: https://github.com/plotly/plotly.js
[3]: https://d3js.org/
-
[OC] Analysis of Youtube comments on surf competition finals of 2023
d3.js - charting
-
How to Build a Flight Network Analysis Graph-Based ASP.NET Application with Memgraph, C#, and D3.js
Now that you have some results, it's time to visualize them. To do so, you will use D3.js, a JavaScript library for manipulating document-based data. If you want to learn more about D3.js, you should visit their official website.
GoJS, a JavaScript Library for HTML Diagrams
-
Purescript bindings for GoJS
Creating the Halogen components would be simple enough if one takes inspiration from gojs-react. The issue is that there are no PureScript bindings for the GoJS types themselves, but GoJS does provide .ts.d declarations, which means I could use purescript-read-dts, but that library's maturity/usability seems somewhat ambiguous, according to an author's post from 3 years ago.
-
Any Ideas How to Create a Graph Builder UI in React?
used goJS in one project and konva in another
-
Ask HN: What is the most impactful thing you've ever built?
I built GoJS, which is one of the most popular commercial JS diagramming libraries: https://gojs.net
I built carefulwords, a very fast thesaurus and quote site for inspiration, used by... tens of people a day. Eg: https://carefulwords.com/gift https://carefulwords.com/solitude
I mostly made it for myself, me and my wife use it all the time. I am slowly editing down the thesaurus to managable size.
I built a 12x16 "Goose Palace" barn out of local pine timbers, which taught me timber framing, and taught my tiny baby who turned 2 years old while doing it that this is just the kind of thing that people normally do, build barns in their driveway. Some context: https://simonsarris.substack.com/p/the-goose-palace
Some photos of building it with the baby: https://twitter.com/simonsarris/status/1584169368203956225
I designed my house, and have been writing extensively about that. Maybe this is the most impactful, since photos of it are all over Pinterest and other sites, now. The first post on that: https://simonsarris.substack.com/p/designing-a-new-old-home-...
I am not sure what is most impactful. Maybe ultimately it is building my family.
-
Node-Based UIs
I made a pull request for GoJS (https://gojs.net)
I have been building this canvas-based graphing library since 2011, and it contains a good number of features around customization and interactivity that are not found in other libraries. It is commercial for non-academic use however.
-
TypeScript is terrible for library developers
I am really surprised by this guy's opinion. I make GoJS (https://gojs.net/), a diagramming library written in TypeScript. The project began in 2011 and we converted it to TS in 2018. It's been a huge plus. The sole downside was the initial time it took during conversion, but even in doing so we caught bugs with incorrect input types, documentation mistakes, etc.
On our end, it enforces type safety better than the Google Closure Compiler. There has scarcely been a problem with type complexity that was not ultimately our fault. Just a couple minor things that TS amended later. For that matter the TS experience has only gotten better, generally.
On our users end, we can now give them a .d.ts file that's much richer and easier for us to produce to aid their autocompletion. And we can use that .d.ts file to ensure that all the methods we intended to expose/minify are getting exposed. The advantages with the .d.ts and documentation make it feel almost essential to me for library developers to consider TS.
TypeScript has only made debugging easier, much easier since it catches errors at time of typing unlike the closure compiler. The sole exception is that debugging is a bit slower since I have to transpile instead of just refreshing the browser. But I have tsc set to compile a relatively unminified version of the JS. But if the slowness gets to me, I can just edit the JS output until I solve the issue, and then carry those edits over to the TS. This has never felt like a problem, though maybe his library is significantly more complicated.
Feel free to ask me anything if you have questions about library design + TS.
-
Ask HN: How to quickly animate sketches and 2D diagrams?
GoJS might work for you: https://gojs.net
Although the focus of the library is interactivity and not setting up sequences of animation, but that is possible too.
-
It's always been you, Canvas2D
My livelihood has been primarily building a Canvas diagramming library since 2010 (https://gojs.net), if anyone has any questions about 2D Canvas use in the real-world I'd be happy to answer them.
roundRect is great. Though you don't need 4 arcTo in order to make a rounded rect, you can use bezier instead (we do). Their example is also 1% amusing because they set the `fillStyle` but then call `stroke` (and not `fill`). I'll have to do some performance comparisons, since that's the operative thing for my use case (and any library author).
text modifiers are very welcome. It's crazy how annoying measuring still is, especially if you want thinks to look perfectly consistent across browsers. Though the chrome dominance is making things easier in one way, I guess.
context.reset is kinda funny. Most high-performance canvas apps will never want to use it. For that matter you want to set all properties as little as possible, especially setting things like context.font, which are slow even if you're setting it to the same value. (Or it was, I haven't tested that in several years).
I'm sure most users know this by now, but generally for performance the fewer calls you make to the canvas and the context, the beter. This is even true of transforms: It's faster to make your own Matrix class, do all your own matrix translation, rotation, multiplication, etc, and then make a single call to `context.setTransform`, than it is to call the other context methods.
-
Ask HN: What are some tools / libraries you built yourself?
I'm not the only developer but I made (and still make) GoJS, an interactive diagramming library for the web.
Most of its popularity is with large companies building their own internal tools where they need diagramming visualization capabilities (layouts, save/load, undo/redo, data binding, etc). So you won't see it too often in the wild, but under the surface it's used in every industry.
I love it, and I love HTML Canvas, which I wish was more popular.
-
Ask HN: What diagrams do you use in software development?
I actually make a diagramming library for the web, called GoJS: https://gojs.net
So I make all kinds of diagrams, mostly as demonstrations. When developing an API itself, especially one where there are phases (objects must measure themselves and draw in a certain order, and not more than they need to), state machine-style and flowchart-style diagrams are awfully helpful.
-
Using KonvaJS as canvas with React
GoJS
What are some alternatives?
echarts - Apache ECharts is a powerful, interactive charting and data visualization library for browser
vis
d4 - A friendly reusable charts DSL for D3
svg.js - The lightweight library for manipulating and animating SVG
draw.io - draw.io is a JavaScript, client-side editor for general diagramming and whiteboarding
paper.js - The Swiss Army Knife of Vector Graphics Scripting – Scriptographer ported to JavaScript and the browser, using HTML5 Canvas. Created by @lehni & @puckey
sigma.js - A JavaScript library aimed at visualizing graphs of thousands of nodes and edges
visx - 🐯 visx | visualization components
react-vis - Data Visualization Components
fabric.js - Javascript Canvas Library, SVG-to-Canvas (& canvas-to-SVG) Parser
three.js - JavaScript 3D Library.
vega - A visualization grammar.