Degrafa & Data Visualization
Andrew Trice had a post over on InsideRIA about using Degrafa as an item renderer within a Data Grid to create a bar chart like effect. His post really helped show just how simple it can be to use Degrafa for visualizing data. In his example he used some RegularRectangles and bound them to the data that was being pulled into a single column to change the width of the rectangle. This was a very simple, yet effective approach and much nicer than looking at a long list of values.
We extended Andrew’s example a bit into another Data Grid example that uses an item renderer with a split bar visualization and optimized the example a little. This example could be extended even further by using Bitmap or Complex fills based on the data, or changing the shape used for the visual. Here’s what it looks like:
While syncing in iTunes I was looking at the indication of how my media was distributed across my iPhone and realized that same visualization could be duplicated using Degrafa. I used a series of different colored RegularRectangles, some VerticalLineRepeaters for the inset markings that dynamically change count depending on the size, some other Rectangles for highlights and shadows, and a RoundedRectangle to mask the area. I also through in a ComplexFill composed of a Solid, Bitmap and Blend fill to create the colored plaid effect. This was really easy to do with binding to change the width, capacity bars, inset marks and colors. Here’s what the example looks like:
UPDATE: Here’s another example that expands upon the bar charts above to create some shape based renderers and a pie chart renderer. The shape renderers were easy to do. They’re masks created with Repeaters. The stars are Polygon Repeaters, the circles are Circle Repeaters, and the squares are Rounded Rectangle Repeaters. The pie chart renderer is just a couple of Elliptical Arcs. See below:
These examples are available on the Degrafa Samples page with View Source enabled.
There’s so much data flying around out there that would be kinda neat to create unique visualizations for using Degrafa. I’ve been checking out COLOURlovers, Echo Nest, FriendFeed and more that would be cool to try and visualize or use in a visualization. Better yet, you could make certain properties accesible to a designer for them to make the visualizations customized to their specifications.
4 Comments, Comment or Ping
Tom Gonzalez
I think you guys are on to something here, I can see a lot of specialized applications of degrafa with a lightweight charting framework for doing repeater type visualizations, and customized cartesian plotting that might not need the heavyweight approach of the Adobe Flex charts (axis, labels,data canvas, etc.) Trying to strip down the Adobe Flex charts to do sparklines, bullet graphs, etc where you are showing large collections of graphs seems like a lot of unnecessary overhead. Perhaps building up a micro-charting architecture on degrafa would be a better approach for those of us looking to do that type of work.
- Tom
Mar 29th, 2008
juan
Tom,
We’ve been having discussion with a couple people to do just what you’re suggesting. I think there are lots of opportunities to do some pretty nice visualizations, especially in the area of micro-charts.
Juan
Mar 30th, 2008
Tom Gonzalez
Juan,
Please keep me posted on this front, especially if you are looking for contributors, as this is an area we are actively focused on, and while the Flex Chart package is very flexible and powerful, it is not always the bet fit for more specialized data visualizations.
Tom
Mar 30th, 2008
Andrew Trice
Nice work! I especially like those shape-graphical elements.
Mar 31st, 2008
Reply to “Degrafa & Data Visualization”