D3
236 views | +0 today
Follow
D3
Curated by mkol5222
Your new post is loading...
Your new post is loading...
Rescooped by mkol5222 from JavaScript for Line of Business Applications
Scoop.it!

D3 and React - the future of charting components?

D3 and React - the future of charting components? | D3 | Scoop.it
Inspiration for combining React with D3 came from reading the following two blog posts where AngularJS was used as a part replacement for D3.* Replacing (most of) d3.js with pure SVG + AngularJS* Screw D3.js, Bar Charts in AngularJSIn these articles, AngularJS was used to manipulate the SVG elements, rather than D3.js. It had been relegated to providing the axis scales, calculating shape dimensions and path coordinates.I was convinced that React could take Angular's place. Bringing with it the benefits of the web component style charting tags that the JSX syntax would allow me to create.This would allow me to specify my chart component in the domain and terms of charting: Chart, Bar, Line and DataSeries. Rather than the actual implementation detail of SVG elements such as g, path, rect.
Via Jan Hesse
more...
No comment yet.
Scooped by mkol5222
Scoop.it!

Building D3 Bar Chart for Angular

Building D3 Bar Chart for Angular | D3 | Scoop.it
D3 a very powerful tool and at times can be a bit overwhelming. Today I would like to simplify things by walking you through building a bar chart using D3. First step is to create a barChart directive. It will will take an data array and add a svg tag to our element. We will using this svg to build our chart. D3 allow us to resize our data to the portions of the SVG using d3.scale. We tell the scale the upper and lower bounds of the dataset using domain and the upper and lower bounds of the chart using range. Using x and y functions generated from d3.scale.linear(), we can then place bars in the right spot on the SVG.
more...
No comment yet.
Rescooped by mkol5222 from JavaScript for Line of Business Applications
Scoop.it!

Why we use D3 and Ember for Data Visualization

Why we use D3 and Ember for Data Visualization | D3 | Scoop.it
When visualizing data on the web, there are two things that we need to think of, the DATA and the DOM. D3 is the go-to visualization library because it’s a flexible and data-driven approach to DOM manipulation; D3 does the complicated math so we can think more about data and visualization. Ember is a MVC javascript framework for creating ambitious web applications. But, why should we use Ember with D3 for DATA and DOM manipulation? Ember gives you tools to easily manage things like async requests and the MVC architecture helps to manage complexity.
Via Jan Hesse
more...
No comment yet.
Scooped by mkol5222
Scoop.it!

Data Visualization with JavaScript without D3

Data Visualization with JavaScript without D3 | D3 | Scoop.it
We'll take a dataset of Hollywood movies, and step by step, we'll build up a simple visualization using only JavaScript in the browser. Let's get this out of the way: D3 is awesome. There's a very good reason it's the de-facto standard library for doing complex data visualization with JavaScript. We use it pretty extensively at Interlincx. I know there's a lot of demand for D3 resources, so here's my reasoning for not covering it here: I want to concentrate on the fundamentals of creating a browser-based visualization without getting lost in any library-specific way of doing things. Even if you're very experienced with both JavaScript and creating data visualizations, D3 has a bit of a learning curve. D3 has a whole lot of functionality to help you create some pretty amazing visualizations, but the techniques I'll cover should translate to creating any browser-based visualization, regardless of tool. While D3 is an amazing tool, it's important to remember it's just one tool in our toolbox. It can be helpful to think about what we want to achieve at more of a conceptual level first before thinking about how to use a specific tool. Lastly, I will most likely cover D3 in a future talk/article. So stay tuned for that =)
more...
No comment yet.
Scooped by mkol5222
Scoop.it!

D3.js: How to handle dynamic JSON Data

D3.js: How to handle dynamic JSON Data | D3 | Scoop.it
When I started with d3.js, I really struggled understanding how I could link data from a JSON feed to a SVG graph. I read a lot of tutorials but still, I couldn't find what I was looking for. Now that I know how d3.js behaves, I thought it would a good idea to share the things that I learned. When you start using the library, there's stuff that might be foreign to you: * It uses SVG which many of us have no experience with. * SVG has an opposite y-coordinate system (0 is on top, height() is at the bottom). * stroke, fill, clipping, etc. My goal was to create a dynamic graph that I could add, edit and remove data and have d3 update the graph in real time but I couldn't understand how to handle enter() and exit() with JSON. Many examples out there were done using static data so it wasn't covering my issues with JSON. Throughout this post, I will be using this response as an example of a JSON response to show you how to represent your JSON into a graph.
more...
No comment yet.