SlideShare a Scribd company logo
1 of 19
D3.Js Desktop & Mobile 
Presented By: Mohamed TAIEB 
@taiebmd
Kit de développement
1. Kit de développement 
NVD3.Js(D3.Js) + Angular-nvd3-Directives
1. Kit de développement / Ionic 
● Framework Front-End pour le développement Mobile hybride en HTML5 
● Basé sur AngularJs avec Zéro utilisation de JQuery. 
● Basé sur Cordova pour la compilation d’applications en iOs, Android, … 
● Se base l’accélération matérielle pour les transitions & les animations 
transform: translateZ(0); 
transform: translate3d(0,0,0); 
perspective: 1000; backface-visibility: hidden; 
v1.0.0-beta.13
1. Kit de développement / Installation & configuration 
cxcxc ● Installation du générateur YeoMan d’ionic 
$ npm install -g generator-ionic 
● Créer le dossier du projet 
$ mkdir dashboard && cd $_ 
● Utiliser le générateur YeoMan 
$ yo ionic 
Suivre les instructions d’installation 
$ ionic serve 
● Ajouter des plates-formes mobiles 
$ ionic platform add ios 
$ ionic platform add android
Android SDK & ADB Tools XCode
1. Kit de développement / Run Hybride Application 
● Lancer l’application 
o iOs 
$ ionic build ios 
$ ionic run ios 
o Android 
$ ionic build android 
$ ionic run android
Demo
1. Kit de développement / NVD3 
● Website: nvd3.com 
● Open source: Yes 
● Library size (compressed+gzip): 50 KB 
● Dependencies: d3.js and Aight for IE8 support - VERY cool but based on D3, no IE8 and prior. 
● Graphic technology: SVG 
● Supported Charts: Area, Bar, Bubble, Line, Pie, Scatter, Spline, Sparklines, Donut, Node / Edge graph, Bullet chart 
● Features: 
o Ability to zoom in and out of charts 
o Annotations on the chart 
o Combination of charts 
o Data labels 
o Dynamic charts 
o Interactive (responds to mouse hover/click)
1. Kit de développement / NVD3 vs D3 
http://jsperf.com/d3-pie-vs-nvd3-pie
1. Kit de développement / AngularJs-nvd3-directives 
● Website: https://github.com/cmaurer/angularjs-nvd3-directives 
● Open source: Yes 
● Library size (compressed+gzip): 20 KB 
● Dependencies: d3.js, nvd3.js and AngularJs 
● Graphic technology: SVG 
● Supported Charts: Area, Bar, Bubble, Line, Pie, Scatter, Spline, Sparklines, Donut, Node / Edge graph, Bullet chart 
● Features: 
o Ability to zoom in and out of charts 
o Annotations on the chart 
o Combination of charts 
o Data labels 
o Dynamic charts (Two-way Data binding d’AngularJs) 
o Interactive (responds to mouse hover/click)
1. Kit de développement / SetUp Angular-nvd3-directives 
● bower install d3 --save 
● bower install nvd3 --save 
● bower install angularjs-nvd3- 
directives --save 
● Include Scripts: d3, nvd3, angularjs-nvd3- 
directives and nv.d3.css
Samples
2. Exemples / Nvd3-pie-chart 
● Templates/pie.html 
<div ng-controller="PieCtrl"> 
<nvd3-pie-chart 
data="pieData" 
id="exampleId" 
x="xFunction()" 
y="yFunction()" 
showLabels="true" 
pieLabelsOutside="false" 
showValues="true" 
labelType="percent"> 
<svg></svg> 
</nvd3-pie-chart> 
</div> 
● Controllers/PieCtrl.js 
$scope.exampleData = [{ 
key: "One", y: 5 
},{ 
key: "Two", y: 2 
}, { 
key: "Three", y: 9 
}, { 
key: "Four", y: 7 
}, { 
key: "Five", y: 4 
}, { 
key: "Six", y: 3 
}, { 
key: "Seven",y: 10 
}]; 
$scope.xFunction = function () { 
return function (d) { return d.key; }; 
} 
$scope.yFunction = function () { 
return function (d) { return d.y;}; 
}
Turn it on Mobile
Alternative Solution
3. Solutions alternatives / JQuery & XCharts 
XCharts(D3.js)
Demo: Olympic 
https://github.com/ccoenraets/olympic-dashboard-d3
Merci 
Questions? 
D3.Js @taiebmd

More Related Content

Similar to D3.JS Desktop & Mobile

State of GeoServer 2.10
State of GeoServer 2.10State of GeoServer 2.10
State of GeoServer 2.10Jody Garnett
 
Node in Production at Aviary
Node in Production at AviaryNode in Production at Aviary
Node in Production at AviaryAviary
 
Cross Platform Mobile App Development
Cross Platform Mobile App DevelopmentCross Platform Mobile App Development
Cross Platform Mobile App DevelopmentAnnmarie Lanesey
 
Begining Android Development
Begining Android DevelopmentBegining Android Development
Begining Android DevelopmentHayi Nukman
 
State of GeoServer - FOSS4G 2016
State of GeoServer - FOSS4G 2016State of GeoServer - FOSS4G 2016
State of GeoServer - FOSS4G 2016GeoSolutions
 
gDayX - Advanced angularjs
gDayX - Advanced angularjsgDayX - Advanced angularjs
gDayX - Advanced angularjsgdgvietnam
 
Containers&Orchestration Approaches
Containers&Orchestration ApproachesContainers&Orchestration Approaches
Containers&Orchestration ApproachesDerya SEZEN
 
Containers and Orchestration approaches
Containers and Orchestration approachesContainers and Orchestration approaches
Containers and Orchestration approacheskloia
 
From React to React Native - Things I wish I knew when I started
From React to React Native - Things I wish I knew when I startedFrom React to React Native - Things I wish I knew when I started
From React to React Native - Things I wish I knew when I startedsparkfabrik
 
Day in a life of a node.js developer
Day in a life of a node.js developerDay in a life of a node.js developer
Day in a life of a node.js developerEdureka!
 
Day In A Life Of A Node.js Developer
Day In A Life Of A Node.js DeveloperDay In A Life Of A Node.js Developer
Day In A Life Of A Node.js DeveloperEdureka!
 
[20200720]cloud native develoment - Nelson Lin
[20200720]cloud native develoment - Nelson Lin[20200720]cloud native develoment - Nelson Lin
[20200720]cloud native develoment - Nelson LinHanLing Shen
 
GeoServer Ecosystem 2018
GeoServer Ecosystem 2018GeoServer Ecosystem 2018
GeoServer Ecosystem 2018Jody Garnett
 
Once upon a time, there were css, js and server-side rendering
Once upon a time, there were css, js and server-side renderingOnce upon a time, there were css, js and server-side rendering
Once upon a time, there were css, js and server-side renderingAndrea Giannantonio
 
DIY: Computer Vision with GWT.
DIY: Computer Vision with GWT.DIY: Computer Vision with GWT.
DIY: Computer Vision with GWT.JooinK
 
DIY- computer vision with GWT
DIY- computer vision with GWTDIY- computer vision with GWT
DIY- computer vision with GWTFrancesca Tosi
 
gDayX 2013 - Advanced AngularJS - Nicolas Embleton
gDayX 2013 - Advanced AngularJS - Nicolas EmbletongDayX 2013 - Advanced AngularJS - Nicolas Embleton
gDayX 2013 - Advanced AngularJS - Nicolas EmbletonGeorge Nguyen
 
Flying a Drone with JavaScript and Computer Vision
Flying a Drone with JavaScript and Computer VisionFlying a Drone with JavaScript and Computer Vision
Flying a Drone with JavaScript and Computer VisionIvo Andreev
 

Similar to D3.JS Desktop & Mobile (20)

State of GeoServer 2.10
State of GeoServer 2.10State of GeoServer 2.10
State of GeoServer 2.10
 
Node in Production at Aviary
Node in Production at AviaryNode in Production at Aviary
Node in Production at Aviary
 
Cross Platform Mobile App Development
Cross Platform Mobile App DevelopmentCross Platform Mobile App Development
Cross Platform Mobile App Development
 
Begining Android Development
Begining Android DevelopmentBegining Android Development
Begining Android Development
 
State of GeoServer - FOSS4G 2016
State of GeoServer - FOSS4G 2016State of GeoServer - FOSS4G 2016
State of GeoServer - FOSS4G 2016
 
JavaME UI - JMDF 2007
JavaME UI - JMDF 2007JavaME UI - JMDF 2007
JavaME UI - JMDF 2007
 
gDayX - Advanced angularjs
gDayX - Advanced angularjsgDayX - Advanced angularjs
gDayX - Advanced angularjs
 
MERLINO2015
MERLINO2015MERLINO2015
MERLINO2015
 
Containers&Orchestration Approaches
Containers&Orchestration ApproachesContainers&Orchestration Approaches
Containers&Orchestration Approaches
 
Containers and Orchestration approaches
Containers and Orchestration approachesContainers and Orchestration approaches
Containers and Orchestration approaches
 
From React to React Native - Things I wish I knew when I started
From React to React Native - Things I wish I knew when I startedFrom React to React Native - Things I wish I knew when I started
From React to React Native - Things I wish I knew when I started
 
Day in a life of a node.js developer
Day in a life of a node.js developerDay in a life of a node.js developer
Day in a life of a node.js developer
 
Day In A Life Of A Node.js Developer
Day In A Life Of A Node.js DeveloperDay In A Life Of A Node.js Developer
Day In A Life Of A Node.js Developer
 
[20200720]cloud native develoment - Nelson Lin
[20200720]cloud native develoment - Nelson Lin[20200720]cloud native develoment - Nelson Lin
[20200720]cloud native develoment - Nelson Lin
 
GeoServer Ecosystem 2018
GeoServer Ecosystem 2018GeoServer Ecosystem 2018
GeoServer Ecosystem 2018
 
Once upon a time, there were css, js and server-side rendering
Once upon a time, there were css, js and server-side renderingOnce upon a time, there were css, js and server-side rendering
Once upon a time, there were css, js and server-side rendering
 
DIY: Computer Vision with GWT.
DIY: Computer Vision with GWT.DIY: Computer Vision with GWT.
DIY: Computer Vision with GWT.
 
DIY- computer vision with GWT
DIY- computer vision with GWTDIY- computer vision with GWT
DIY- computer vision with GWT
 
gDayX 2013 - Advanced AngularJS - Nicolas Embleton
gDayX 2013 - Advanced AngularJS - Nicolas EmbletongDayX 2013 - Advanced AngularJS - Nicolas Embleton
gDayX 2013 - Advanced AngularJS - Nicolas Embleton
 
Flying a Drone with JavaScript and Computer Vision
Flying a Drone with JavaScript and Computer VisionFlying a Drone with JavaScript and Computer Vision
Flying a Drone with JavaScript and Computer Vision
 

Recently uploaded

BDSM⚡Call Girls in Sector 71 Noida Escorts >༒8448380779 Escort Service
BDSM⚡Call Girls in Sector 71 Noida Escorts >༒8448380779 Escort ServiceBDSM⚡Call Girls in Sector 71 Noida Escorts >༒8448380779 Escort Service
BDSM⚡Call Girls in Sector 71 Noida Escorts >༒8448380779 Escort ServiceDelhi Call girls
 
Powerful Love Spells in Arkansas, AR (310) 882-6330 Bring Back Lost Lover
Powerful Love Spells in Arkansas, AR (310) 882-6330 Bring Back Lost LoverPowerful Love Spells in Arkansas, AR (310) 882-6330 Bring Back Lost Lover
Powerful Love Spells in Arkansas, AR (310) 882-6330 Bring Back Lost LoverPsychicRuben LoveSpells
 
FULL ENJOY - 9999218229 Call Girls in {Mahipalpur}| Delhi NCR
FULL ENJOY - 9999218229 Call Girls in {Mahipalpur}| Delhi NCRFULL ENJOY - 9999218229 Call Girls in {Mahipalpur}| Delhi NCR
FULL ENJOY - 9999218229 Call Girls in {Mahipalpur}| Delhi NCRnishacall1
 
9892124323 | Book Call Girls in Juhu and escort services 24x7
9892124323 | Book Call Girls in Juhu and escort services 24x79892124323 | Book Call Girls in Juhu and escort services 24x7
9892124323 | Book Call Girls in Juhu and escort services 24x7Pooja Nehwal
 
CALL ON ➥8923113531 🔝Call Girls Gomti Nagar Lucknow best Night Fun service
CALL ON ➥8923113531 🔝Call Girls Gomti Nagar Lucknow best Night Fun serviceCALL ON ➥8923113531 🔝Call Girls Gomti Nagar Lucknow best Night Fun service
CALL ON ➥8923113531 🔝Call Girls Gomti Nagar Lucknow best Night Fun serviceanilsa9823
 
Call US Pooja 9892124323 ✓Call Girls In Mira Road ( Mumbai ) secure service,
Call US Pooja 9892124323 ✓Call Girls In Mira Road ( Mumbai ) secure service,Call US Pooja 9892124323 ✓Call Girls In Mira Road ( Mumbai ) secure service,
Call US Pooja 9892124323 ✓Call Girls In Mira Road ( Mumbai ) secure service,Pooja Nehwal
 
CALL ON ➥8923113531 🔝Call Girls Saharaganj Lucknow best sexual service
CALL ON ➥8923113531 🔝Call Girls Saharaganj Lucknow best sexual serviceCALL ON ➥8923113531 🔝Call Girls Saharaganj Lucknow best sexual service
CALL ON ➥8923113531 🔝Call Girls Saharaganj Lucknow best sexual serviceanilsa9823
 

Recently uploaded (7)

BDSM⚡Call Girls in Sector 71 Noida Escorts >༒8448380779 Escort Service
BDSM⚡Call Girls in Sector 71 Noida Escorts >༒8448380779 Escort ServiceBDSM⚡Call Girls in Sector 71 Noida Escorts >༒8448380779 Escort Service
BDSM⚡Call Girls in Sector 71 Noida Escorts >༒8448380779 Escort Service
 
Powerful Love Spells in Arkansas, AR (310) 882-6330 Bring Back Lost Lover
Powerful Love Spells in Arkansas, AR (310) 882-6330 Bring Back Lost LoverPowerful Love Spells in Arkansas, AR (310) 882-6330 Bring Back Lost Lover
Powerful Love Spells in Arkansas, AR (310) 882-6330 Bring Back Lost Lover
 
FULL ENJOY - 9999218229 Call Girls in {Mahipalpur}| Delhi NCR
FULL ENJOY - 9999218229 Call Girls in {Mahipalpur}| Delhi NCRFULL ENJOY - 9999218229 Call Girls in {Mahipalpur}| Delhi NCR
FULL ENJOY - 9999218229 Call Girls in {Mahipalpur}| Delhi NCR
 
9892124323 | Book Call Girls in Juhu and escort services 24x7
9892124323 | Book Call Girls in Juhu and escort services 24x79892124323 | Book Call Girls in Juhu and escort services 24x7
9892124323 | Book Call Girls in Juhu and escort services 24x7
 
CALL ON ➥8923113531 🔝Call Girls Gomti Nagar Lucknow best Night Fun service
CALL ON ➥8923113531 🔝Call Girls Gomti Nagar Lucknow best Night Fun serviceCALL ON ➥8923113531 🔝Call Girls Gomti Nagar Lucknow best Night Fun service
CALL ON ➥8923113531 🔝Call Girls Gomti Nagar Lucknow best Night Fun service
 
Call US Pooja 9892124323 ✓Call Girls In Mira Road ( Mumbai ) secure service,
Call US Pooja 9892124323 ✓Call Girls In Mira Road ( Mumbai ) secure service,Call US Pooja 9892124323 ✓Call Girls In Mira Road ( Mumbai ) secure service,
Call US Pooja 9892124323 ✓Call Girls In Mira Road ( Mumbai ) secure service,
 
CALL ON ➥8923113531 🔝Call Girls Saharaganj Lucknow best sexual service
CALL ON ➥8923113531 🔝Call Girls Saharaganj Lucknow best sexual serviceCALL ON ➥8923113531 🔝Call Girls Saharaganj Lucknow best sexual service
CALL ON ➥8923113531 🔝Call Girls Saharaganj Lucknow best sexual service
 

D3.JS Desktop & Mobile

  • 1. D3.Js Desktop & Mobile Presented By: Mohamed TAIEB @taiebmd
  • 3. 1. Kit de développement NVD3.Js(D3.Js) + Angular-nvd3-Directives
  • 4. 1. Kit de développement / Ionic ● Framework Front-End pour le développement Mobile hybride en HTML5 ● Basé sur AngularJs avec Zéro utilisation de JQuery. ● Basé sur Cordova pour la compilation d’applications en iOs, Android, … ● Se base l’accélération matérielle pour les transitions & les animations transform: translateZ(0); transform: translate3d(0,0,0); perspective: 1000; backface-visibility: hidden; v1.0.0-beta.13
  • 5. 1. Kit de développement / Installation & configuration cxcxc ● Installation du générateur YeoMan d’ionic $ npm install -g generator-ionic ● Créer le dossier du projet $ mkdir dashboard && cd $_ ● Utiliser le générateur YeoMan $ yo ionic Suivre les instructions d’installation $ ionic serve ● Ajouter des plates-formes mobiles $ ionic platform add ios $ ionic platform add android
  • 6. Android SDK & ADB Tools XCode
  • 7. 1. Kit de développement / Run Hybride Application ● Lancer l’application o iOs $ ionic build ios $ ionic run ios o Android $ ionic build android $ ionic run android
  • 9. 1. Kit de développement / NVD3 ● Website: nvd3.com ● Open source: Yes ● Library size (compressed+gzip): 50 KB ● Dependencies: d3.js and Aight for IE8 support - VERY cool but based on D3, no IE8 and prior. ● Graphic technology: SVG ● Supported Charts: Area, Bar, Bubble, Line, Pie, Scatter, Spline, Sparklines, Donut, Node / Edge graph, Bullet chart ● Features: o Ability to zoom in and out of charts o Annotations on the chart o Combination of charts o Data labels o Dynamic charts o Interactive (responds to mouse hover/click)
  • 10. 1. Kit de développement / NVD3 vs D3 http://jsperf.com/d3-pie-vs-nvd3-pie
  • 11. 1. Kit de développement / AngularJs-nvd3-directives ● Website: https://github.com/cmaurer/angularjs-nvd3-directives ● Open source: Yes ● Library size (compressed+gzip): 20 KB ● Dependencies: d3.js, nvd3.js and AngularJs ● Graphic technology: SVG ● Supported Charts: Area, Bar, Bubble, Line, Pie, Scatter, Spline, Sparklines, Donut, Node / Edge graph, Bullet chart ● Features: o Ability to zoom in and out of charts o Annotations on the chart o Combination of charts o Data labels o Dynamic charts (Two-way Data binding d’AngularJs) o Interactive (responds to mouse hover/click)
  • 12. 1. Kit de développement / SetUp Angular-nvd3-directives ● bower install d3 --save ● bower install nvd3 --save ● bower install angularjs-nvd3- directives --save ● Include Scripts: d3, nvd3, angularjs-nvd3- directives and nv.d3.css
  • 14. 2. Exemples / Nvd3-pie-chart ● Templates/pie.html <div ng-controller="PieCtrl"> <nvd3-pie-chart data="pieData" id="exampleId" x="xFunction()" y="yFunction()" showLabels="true" pieLabelsOutside="false" showValues="true" labelType="percent"> <svg></svg> </nvd3-pie-chart> </div> ● Controllers/PieCtrl.js $scope.exampleData = [{ key: "One", y: 5 },{ key: "Two", y: 2 }, { key: "Three", y: 9 }, { key: "Four", y: 7 }, { key: "Five", y: 4 }, { key: "Six", y: 3 }, { key: "Seven",y: 10 }]; $scope.xFunction = function () { return function (d) { return d.key; }; } $scope.yFunction = function () { return function (d) { return d.y;}; }
  • 15. Turn it on Mobile
  • 17. 3. Solutions alternatives / JQuery & XCharts XCharts(D3.js)