Presentation is loading. Please wait.

Presentation is loading. Please wait.

Data Visualization with Dojo toolkit Gu Yi, He Apache Asia Roadshow 2010.

Similar presentations


Presentation on theme: "Data Visualization with Dojo toolkit Gu Yi, He Apache Asia Roadshow 2010."— Presentation transcript:

1 Data Visualization with Dojo toolkit Gu Yi, He Apache Asia Roadshow 2010

2 Agenda Why JavaScript? Why JavaScript? Getting started with Dojo Charting Getting started with Dojo Charting Dashboards Dashboards Drawing with Dojo GFX Drawing with Dojo GFX Embracing the next new Tech Wave Embracing the next new Tech Wave Further Reading Further Reading

3 Why JavaScript? Rich Internet Applications Rich Internet Applications Flex Flex Silverlight Silverlight JavaFX JavaFX JavaScript/CSS/HTML JavaScript/CSS/HTML

4 Getting Started with Dojo Charting Our first Pie chart Our first Pie chart IE / Firefox / Safari / Chrome compatible!

5 Getting Started with Dojo Charting Easy to create Easy to create Requiring Charting Classes Requiring Charting Classes Two ways to play Two ways to play Declarative Chart Creation Declarative Chart Creation Programmatic Chart Creation Programmatic Chart Creation Chart Animations, Legends, and Themes Chart Animations, Legends, and Themes

6 Getting Started with Dojo Charting Declarative / Programmatic Chart Creation Declarative / Programmatic Chart Creation Declarative Programmatic

7 Getting Started with Dojo Charting Customize the chart Customize the chart The effects can be added onto the chart like plugins The effects can be added onto the chart like plugins We can finely control the behavior and apparence of the chart We can finely control the behavior and apparence of the chart

8 Getting Started with Dojo Charting Abundant amount of chart types Abundant amount of chart types

9 Dashboards

10 Drawing with Dojo GFX Need to invent a new chart type? Need to invent a new chart type? Need to draw freely? Need to draw freely? Dojo GFX is a cross-platform vector graphics API you are looking for Dojo GFX is a cross-platform vector graphics API you are looking for SVG (Firefox 1.5-3.6, Safari(Webkit) 3.0, Opera 9.0, Chrome(Webkit), iPhone Safari 2.1) SVG (Firefox 1.5-3.6, Safari(Webkit) 3.0, Opera 9.0, Chrome(Webkit), iPhone Safari 2.1) VML (IE 6-8) VML (IE 6-8) Silverlight (wherever it is supported by Microsoft) Silverlight (wherever it is supported by Microsoft) Canvas (Firefox 2.0-3.6, Safari 3.0 including iPhone Safari 1.x & 2.x, Opera 9.0) Canvas (Firefox 2.0-3.6, Safari 3.0 including iPhone Safari 1.x & 2.x, Opera 9.0)

11 Drawing with Dojo GFX Dojo GFX loosely follows SVG as the underlying model. Dojo GFX loosely follows SVG as the underlying model. Every visual presentation created with Dojo GFX begins by creating a Surface object which will serve as the visual rectangular container for shapes. Every visual presentation created with Dojo GFX begins by creating a Surface object which will serve as the visual rectangular container for shapes. In order to draw on a Surface, you'll need to create Shape objects and attach the shapes to a Surface. In order to draw on a Surface, you'll need to create Shape objects and attach the shapes to a Surface. GFX also has the concept of a Group, which is a pseudo- shape. Groups combine other shapes (which can include other groups), and can be used to apply transformation to a group. GFX also has the concept of a Group, which is a pseudo- shape. Groups combine other shapes (which can include other groups), and can be used to apply transformation to a group.

12 Drawing with Dojo GFX Supported Shapes Supported Shapes Rectangle (optionally with rounded corners) Rectangle (optionally with rounded corners) Circle Circle Ellipse Ellipse Line Line Polyline/polygon Polyline/polygon Path (the most versatile shape) Path implements the full SVG path language. Path (the most versatile shape) Path implements the full SVG path language. Image Image Text Text TextPath TextPath

13 Drawing with Dojo GFX Demo Demo Clock Dojo guy Chart Animation

14 Embracing the next new Tech Wave HTML5 (Canvas) HTML5 (Canvas) Dojo GFX has already adopt canvas as it graph engine. Dojo GFX has already adopt canvas as it graph engine. Set gfxRenderer=true to force Dojo GFX to use canvas. Set gfxRenderer=true to force Dojo GFX to use canvas. CanvasSVGVMLSilverlight Dojo GFX Dojo Charting

15 Embracing the next new Tech Wave CSS3 CSS3 Safari/Chrome/FireFox 3.6 Opera 10.53Safari (iPhone OS 3.1) IE9 betaIE8 IE7IE6 Doraemon (http://knb.im/css3/)

16 Embracing the next new Tech Wave Mobile Mobile Switch List

17 Further Reading dojotoolkit.org dojotoolkit.org http://dojotoolkit.org http://dojotoolkit.org http://dojotoolkit.org IBM developerWorks IBM developerWorks http://www.ibm.com/developerworks/ http://www.ibm.com/developerworks/ http://www.ibm.com/developerworks/ Dojo Toolkit SDK Dojo Toolkit SDK


Download ppt "Data Visualization with Dojo toolkit Gu Yi, He Apache Asia Roadshow 2010."

Similar presentations


Ads by Google