Presentation is loading. Please wait.

Presentation is loading. Please wait.

Please thank our sponsors?. SharePoint Data Visualization Using D3, SVG, jQuery and REST.

Similar presentations


Presentation on theme: "Please thank our sponsors?. SharePoint Data Visualization Using D3, SVG, jQuery and REST."— Presentation transcript:

1 Please thank our sponsors?

2 SharePoint Data Visualization Using D3, SVG, jQuery and REST

3 Joseph VanWagoner Employed at the University of Utah SharePoint developer since 2007 Email: joseph.vanwagoner@hsc.utah.edu Likes: –Exercise –Comic Books (Superman!!!) –My Family –College Football

4 Joseph VanWagoner

5 Objectives Learn about D3 JavaScript framework Learn about SVG elements Learn how to build data visualization using D3, SVG, REST and of course SharePoint

6 Learn about D3 What is D3? D3.js is a JavaScript library for manipulating documents based on data. D3 helps you bring data to life using HTML, SVG, and CSS. (http://d3js.org)

7 Learn about D3 What is D3? D3 has the ability to create live, dynamic, rich and interactive data visualization in the form of: Bar Charts Pie Charts Gantt Charts And much, much more…

8 Learn about D3 EXAMPLES

9 Learn about D3 What is SVG? Scalable Vector Graphics SVG is a text-based image format. Meaning, you can specify what an SVG image should look like by writing simple markup code, sort of like HTML tags. In fact, SVG code can be included directly within any HTML 5 compliant browser

10 Learn about D3 What is SVG? SVG Shapes SVG has some predefined shape elements that can be used by developers: Rectangle Circle Ellipse Line Text Path

11 Learn about D3 What is SVG? SVG Rectangle -

12 Learn about D3 What is SVG? SVG Circle -

13 Learn about D3 What is SVG? SVG Ellipse -

14 Learn about D3 What is SVG? SVG Line -

15 Learn about D3 What is SVG? SVG Text -

16 Learn about D3 What is SVG? SVG Path - M = moveto L = lineto H = horizontal lineto V = vertical lineto C = curveto S = smooth curveto Q = quadratic Bézier curve T = smooth quadratic Bézier curveto A = elliptical Arc Z = closepath

17 Learn about D3 What is SVG? Coordinate Space

18 Learn about D3 What is SVG? CSS

19 Learn about D3 Let’s Get Started What is needed? A page jQuery D3 JavaScript CSS SharePoint List

20 Learn about D3 DEMO

21 Learn about D3

22 Scales “Scales are functions that map from an input domain to an output range.” That’s Mike Bostock’s definition of D3 scales.Mike Bostock’s definition of D3 scales

23 Learn about D3 Scales Apples and Pixels Imagine that the following data set represents the number of apples sold at a roadside fruit stand each month: var dataset = [ 100, 200, 300, 400, 500 ];

24 Learn about D3 Scales Quantitative Scales – for continuous input domains, aka unordered lists Ordinal Scales – for discrete input domains, such as numbers, aka ordered lists Time Scales – for time domains

25 Learn about D3 Scales Domains and Ranges A scale’s input domain is the range of possible input data values. Given the apples data above, appropriate input domains would be either 100 and 500 (the minimum and maximum values of the data set) or zero and 500. A scale’s output range is the range of possible output values, commonly used as display values in pixel units. The output range is completely up to you, as the information designer. If you decide the shortest apple-bar will be 10 pixels tall, and the tallest will be 350 pixels tall, then you could set an output range of 10 and 350.

26 Learn about D3 Scales Normalization: is the process of mapping a numeric value to a new value between 0 and 1, based on the possible minimum and maximum values. For example, with 365 days in the year, day number 310 maps to about 0.85, or 85% of the way through the year.

27 Learn about D3 DEMO

28 Learn about D3 Axes Much like the scale functions, D3’s axes are actually functions whose parameters you define.D3’s axes Unlike scales, when an axis function is called, it doesn’t return a value, but generates the visual elements of the axis, including lines, labels, and ticks.

29 Learn about D3 Axes Vertical Horizontal

30 Learn about D3 DEMO

31 Learn about D3 Pie Chart 3.14 var pie = d3.layout.pie(); //this will create arc data for us given a list of values pie.value(function (d) { return d.frequency; }).sort(null); //we must tell it out to access the value of each element in our data array

32 Learn about D3 What is SVG? SVG Path - M = moveto L = lineto H = horizontal lineto V = vertical lineto C = curveto S = smooth curveto Q = quadratic Bézier curve T = smooth quadratic Bézier curveto A = elliptical Arc Z = closepath

33 Learn about D3 Pie Chart The Arc Reactor: var arc = d3.svg.arc().outerRadius(r *.8).innerRadius(r *.4); this will create elements for us using arc data

34 Learn about D3 Resources D3 Tutorials – Scott Murray http://alignedleft.com/tutorials/d3 Simple Pie Chart Example http://jsfiddle.net/H2SKt/1/ Library https://github.com/mbostock/d3/wiki/Tutorials Go to the Source https://d3js.org/

35 Learn about D3 Questions???

36 Learn about D3 Thanks!!!


Download ppt "Please thank our sponsors?. SharePoint Data Visualization Using D3, SVG, jQuery and REST."

Similar presentations


Ads by Google