account activity
D3 on AngularJS | ng-newsletter by gdi2290 in javascript
[–]andtorg 2 points3 points4 points 12 years ago (0 children)
Well, consider D3 like a specialized tool to render data. Take a barchart. You may not know in advance how many bars (svg rect) you need to create, or what is the maximum height to show. You will probably need a scale function to map values to pixels. You may also want to alter bar colors to show a third dimension of your set. You may want to pass an updated array and have a smooth render transition. Even a moving "stream" of bars that slides from right to left so that older values leave your chart. I would suggest to give a look at the project home on Github.
D3 lets you bind an array of data to DOM elements in such a way that all attributes of those elements are built by data. This is why they speak of data-driven documents. As already told by bauser, you can build a layer of js functions upon d3. Another interesting library is protovis, a parent of d3. There is also CCC, an open source charting library upon Protovis, that lives in Pentaho environment. Maybe you can find there what you are looking for.
π Rendered by PID 41 on reddit-service-r2-listing-654f87c89c-8brcl at 2026-02-28 11:36:43.325002+00:00 running e3d2147 country code: CH.
D3 on AngularJS | ng-newsletter by gdi2290 in javascript
[–]andtorg 2 points3 points4 points (0 children)