Feed Your Inner Data Scientist
JAVASCRIPT TOOLS FOR DATA VISUALIZATION AND ANALYSIS
Feed Your Inner Data Scientist JAVASCRIPT TOOLS FOR DATA - - PowerPoint PPT Presentation
Feed Your Inner Data Scientist JAVASCRIPT TOOLS FOR DATA VISUALIZATION AND ANALYSIS GOAL For Today Big Data Health Govt Financial Dev Ops IOT Sensors Stats Bio Doug Mair Doug.Mair@gmail.com @doug_mair Principal Consultant for
JAVASCRIPT TOOLS FOR DATA VISUALIZATION AND ANALYSIS
Big Data
Health Gov’t Financial Dev Ops
IOT
Sensors Stats
Doug Mair
Doug.Mair@gmail.com @doug_mair Principal Consultant for Improving Enterprises Windows Developer User Group – Columbus, Ohio
With IOT and business processes, lots of data is being collected Separation of concerns
Services and Event Queues are good Architectures to explore
MAP – Group, Sort and Filter.
time
Reduce – Functions on each groups.
www.globalnerdy.com/2016/06/23/map-filter-and-reduce-explained-using-emoji
Month Average Open High Low Average Close Total Volume
OCT 25.845 27.41 25.19 26.19 256,302,600 SEP 24.79333 25.06905 24.54238 24.83429 927,769,100 AUG 24.77667 25.05333 24.58 24.99667 134,843,500
Now that we have all the data separated out … Your Client wants to see it in a Bar Chart. Options:
From: http://bost.ocks.org/mike/bar/
Example 1: HTML and Divs
D3.js is a JavaScript library for manipulating documents based on
emphasis on web standards gives you the full capabilities of modern browsers without tying yourself to a proprietary framework, combining powerful visualization components and a data-driven approach to DOM manipulation.
Written by Mike Bostock
http://d3js.org/
https://github.com/d3/d3/wiki/Gallery
340+ Visual examples 600+ Links to even more examples
Look for a chart you want to create and you will most likely find a working sample to build from.
Force Layout Carto gram
We want to switch from Bar Chart to Line Chart. Should be easy right …
But … Now they want a Dashboard with more features. Multiple charts that Interact with each other.
dc.js - Dimensional Charting Javascript Library dc.js is a javascript charting library with native crossfilter support and allowing highly efficient exploration on large multi-dimensional dataset (inspired by crossfilter's demo). It leverages d3 engine to render charts in css friendly svg format. Charts rendered using dc.js are naturally data driven and reactive therefore providing instant feedback on user's interaction. The main
perform data visualization and analysis in browser as well as on mobile device.
https://dc-js.github.io/dc.js/
Fluent interface – Be careful of return type and order. Great for Dashboards
Crossfilter is a JavaScript library for exploring large multivariate datasets in the
views, even with datasets containing a million or more records; we built it to power analytics for Square Register, allowing merchants to slice and dice their payment history fluidly.
http://square.github.io/crossfilter/
A Javascript Map / Reduce framework. Steps for using Cross Filter
Create Indexes var ndx = crossfilter(data); var all = ndx.groupAll(); Create Dimensions var dateDimension = ndx.dimension(function (d) { return d.date; }); Create Groups var dayWebGroup = dayDimension.group().reduceSum(function (d) { return d.web; }); Use Groups on the charts stocksChart .dimension(dayDimension) .group(reduceGroup, "TV Spots")
DataTables Table plug-in for jQuery
https://datatables.net/
DataTables is a plug-in for the jQuery Javascript
foundations of progressive enhancement, and will add advanced interaction controls to any HTML table. Highly configurable JavaScriptlibrary for displaying data in tables.
All Open Source – Still cant believe these tools are free. Easy entry to building Dashboards. It is still tough, but lots of help available online.
Covered:
d3.js, dc.js, crossfilter.js, moment.js, datatables.net
Contact Info:
Doug.Mair@gmail.com @doug_mair