SlideShare a Scribd company logo
Explore Data Distributions
Using D3.js
​ Geoff Escandon
​ Technical Architect
​ gescandon@appirio.com
​ @gjescandon
​ 
Geoff Escandon
Technical Architect, Appirio
Level up by using visualization library D3.js
Convert the SFDC relational data into hierarchical JSON
Explore and present our data with D3.js visualizations
As your data becomes more complex...
Buddy Valastro, President & CEO, Carlo’s Bakery
presenting data distributions
is essential for success in
sales, service, and platform
performance.
What is D3.js
​ D3.js is a JavaScript library for
manipulating documents
based on data.
​ http://d3js.org/
D3 Concepts
Tree Layout - The tree layout produces tidy
node-link diagrams of trees using the
Reingold–Tilford “tidy” algorithm.
https://github.com/mbostock/d3/wiki/Tree-Layout
Demo #1: Custom Account Hierarchy View
1.  Account Hierarchies (Account belongs to
a parent Account)
2.  Based on D3 – Collapsible Indented Tree
3.  http://bl.ocks.org/mbostock/1093025
4.  Dynamic color coding to highlight key
metrics.
Code Sample #1: Custom Account Hierarchy View
1.  Review VF structure
2.  Show Soql query and results
(hierarchical)
3.  Show JSON output
4.  Show JS which converts data
5.  Source code available on github
Code Sample #1: Custom Account Hierarchy View
Using the Force.com AJAX toolkit...
How do we transform the above relational
results to JSON (over there on the right >>) ?
​ Show Soql query and results
Code Sample #1: Custom Account Hierarchy View
Show JS which converts hierarchical data
Demo #2: Account Sunburst
1.  Based on D3 - Sunburst Partition
2.  http://bl.ocks.org/mbostock/4063423
3.  Dynamic sizing and color based on key
metrics.
4.  Dynamic levels.
Demo #3: Big Data Drill down
1.  Based on D3 - Sunburst Partition
2.  http://bl.ocks.org/mbostock/4063423
3.  See high level distribution patterns in
large data sets
4.  Drill down for details
Demo #4: Processing Master – child Data
1.  Opportunities that belong to Country__c
and Region__c
2.  Based on D3 - Partition Layers
3.  http://mbostock.github.io/d3/talk/
20111018/partition.html
Code Sample #2: Processing Master-child Data
Show JS which converts hierarchical data
Know your data quality and volumes
Know when to query whole sets or partials sets of data
Present visualizations to answer specific questions
As your data becomes more complex...
Buddy Valastro, President & CEO, Carlo’s Bakery
Gotchas
Demo #5: Gotchas
Gotcha: Poor or inconsistent Data Quality can
lead to ugly visualizations.
Solution:
Understand how empty, null, or other invalid
data will render in your visualization.
Demo #5: Gotchas
Gotcha: Depending on the implementation,
some visualizations may hide details from
you.
Solution:
​  Be sure to understand the implementation
of the visualization.
​  Use sizing or color to highlight areas where
details may be hidden.
​  Query partial data sets.
D3.js is sweet for exploring and presenting data
Convert hierarchical and relational data into JSON
Know the gotchas
What we have learned
Buddy Valastro, President & CEO, Carlo’s Bakery
Explore Data Distributions
using D3.js
Explore Data Distributions using D3.js
D3.js Reference
1.  http://d3js.org/
2.  https://github.com/gescandon/df15-explore-data-using-
d3
3.  https://leanpub.com/D3-Tips-and-Tricks
Thank you

More Related Content

PPTX
Explore Data Distributions using D3.js
PPTX
D3.js - A picture is worth a thousand words
PDF
D3.js mindblow
PDF
D3 js
PDF
Self Service Analytics enabled by Data Virtualization from Denodo
PPTX
Targeted Marketing: How Marketing Companies can use Big Data to Target Custom...
PDF
Apache Kafka and the Data Mesh | Michael Noll, Confluent
PPTX
Day 1 - Technical Bootcamp azure synapse analytics
Explore Data Distributions using D3.js
D3.js - A picture is worth a thousand words
D3.js mindblow
D3 js
Self Service Analytics enabled by Data Virtualization from Denodo
Targeted Marketing: How Marketing Companies can use Big Data to Target Custom...
Apache Kafka and the Data Mesh | Michael Noll, Confluent
Day 1 - Technical Bootcamp azure synapse analytics

Similar to Explore Data Distributions Using D3.js (20)

PPTX
Pass chapter meeting - november - partitioning for database availability - ch...
PPTX
Tech days 2011 - database design patterns for keeping your database applicati...
PDF
Maximizing Data Lake ROI with Data Virtualization: A Technical Demonstration
PPTX
chapter 6 data visualization ppt.pptx
DOCX
Bis 245
PPTX
Introduction to D3.js
PPT
Qiagram
PDF
Lunch and Learn ANZ: Shaping the Role of a Data Lake in a Modern Data Fabric ...
PDF
Product Keynote: Advancing Denodo’s Logical Data Fabric with AI and Advanced ...
PDF
How Data Virtualization Adds Value to Your Data Science Stack
PPTX
Yahoo!, Big Data, and Microsoft BI: Bigger and Better Together
PPTX
Data modeling star schema
PPTX
Be a database professional
PPTX
Be a database professional
PDF
Data Warehouse Design and Best Practices
PDF
Agile Data Rationalization for Operational Intelligence
PDF
Bridging the Last Mile: Getting Data to the People Who Need It (APAC)
PPTX
data-mesh-101.pptx
PDF
Data Engineering Interview Questions & Answers Warehouses & Lakehouses (Snowf...
Pass chapter meeting - november - partitioning for database availability - ch...
Tech days 2011 - database design patterns for keeping your database applicati...
Maximizing Data Lake ROI with Data Virtualization: A Technical Demonstration
chapter 6 data visualization ppt.pptx
Bis 245
Introduction to D3.js
Qiagram
Lunch and Learn ANZ: Shaping the Role of a Data Lake in a Modern Data Fabric ...
Product Keynote: Advancing Denodo’s Logical Data Fabric with AI and Advanced ...
How Data Virtualization Adds Value to Your Data Science Stack
Yahoo!, Big Data, and Microsoft BI: Bigger and Better Together
Data modeling star schema
Be a database professional
Be a database professional
Data Warehouse Design and Best Practices
Agile Data Rationalization for Operational Intelligence
Bridging the Last Mile: Getting Data to the People Who Need It (APAC)
data-mesh-101.pptx
Data Engineering Interview Questions & Answers Warehouses & Lakehouses (Snowf...
Ad

More from Salesforce Developers (20)

PDF
Sample Gallery: Reference Code and Best Practices for Salesforce Developers
PDF
Maximizing Salesforce Lightning Experience and Lightning Component Performance
PDF
Local development with Open Source Base Components
PPTX
TrailheaDX India : Developer Highlights
PDF
Why developers shouldn’t miss TrailheaDX India
PPTX
CodeLive: Build Lightning Web Components faster with Local Development
PPTX
CodeLive: Converting Aura Components to Lightning Web Components
PPTX
Enterprise-grade UI with open source Lightning Web Components
PPTX
TrailheaDX and Summer '19: Developer Highlights
PDF
Live coding with LWC
PDF
Lightning web components - Episode 4 : Security and Testing
PDF
LWC Episode 3- Component Communication and Aura Interoperability
PDF
Lightning web components episode 2- work with salesforce data
PDF
Lightning web components - Episode 1 - An Introduction
PDF
Migrating CPQ to Advanced Calculator and JSQCP
PDF
Scale with Large Data Volumes and Big Objects in Salesforce
PDF
Replicate Salesforce Data in Real Time with Change Data Capture
PDF
Modern Development with Salesforce DX
PDF
Get Into Lightning Flow Development
PDF
Integrate CMS Content Into Lightning Communities with CMS Connect
Sample Gallery: Reference Code and Best Practices for Salesforce Developers
Maximizing Salesforce Lightning Experience and Lightning Component Performance
Local development with Open Source Base Components
TrailheaDX India : Developer Highlights
Why developers shouldn’t miss TrailheaDX India
CodeLive: Build Lightning Web Components faster with Local Development
CodeLive: Converting Aura Components to Lightning Web Components
Enterprise-grade UI with open source Lightning Web Components
TrailheaDX and Summer '19: Developer Highlights
Live coding with LWC
Lightning web components - Episode 4 : Security and Testing
LWC Episode 3- Component Communication and Aura Interoperability
Lightning web components episode 2- work with salesforce data
Lightning web components - Episode 1 - An Introduction
Migrating CPQ to Advanced Calculator and JSQCP
Scale with Large Data Volumes and Big Objects in Salesforce
Replicate Salesforce Data in Real Time with Change Data Capture
Modern Development with Salesforce DX
Get Into Lightning Flow Development
Integrate CMS Content Into Lightning Communities with CMS Connect
Ad

Recently uploaded (20)

PDF
August Patch Tuesday
PDF
1 - Historical Antecedents, Social Consideration.pdf
PDF
Unlocking AI with Model Context Protocol (MCP)
PPTX
Group 1 Presentation -Planning and Decision Making .pptx
PDF
Hybrid model detection and classification of lung cancer
PDF
A novel scalable deep ensemble learning framework for big data classification...
PPTX
cloud_computing_Infrastucture_as_cloud_p
PDF
ENT215_Completing-a-large-scale-migration-and-modernization-with-AWS.pdf
PPTX
SOPHOS-XG Firewall Administrator PPT.pptx
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Hindi spoken digit analysis for native and non-native speakers
PDF
Microsoft Solutions Partner Drive Digital Transformation with D365.pdf
PDF
Univ-Connecticut-ChatGPT-Presentaion.pdf
PPTX
TLE Review Electricity (Electricity).pptx
PPTX
A Presentation on Touch Screen Technology
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PDF
From MVP to Full-Scale Product A Startup’s Software Journey.pdf
PPTX
Tartificialntelligence_presentation.pptx
PPTX
1. Introduction to Computer Programming.pptx
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
August Patch Tuesday
1 - Historical Antecedents, Social Consideration.pdf
Unlocking AI with Model Context Protocol (MCP)
Group 1 Presentation -Planning and Decision Making .pptx
Hybrid model detection and classification of lung cancer
A novel scalable deep ensemble learning framework for big data classification...
cloud_computing_Infrastucture_as_cloud_p
ENT215_Completing-a-large-scale-migration-and-modernization-with-AWS.pdf
SOPHOS-XG Firewall Administrator PPT.pptx
Encapsulation_ Review paper, used for researhc scholars
Hindi spoken digit analysis for native and non-native speakers
Microsoft Solutions Partner Drive Digital Transformation with D365.pdf
Univ-Connecticut-ChatGPT-Presentaion.pdf
TLE Review Electricity (Electricity).pptx
A Presentation on Touch Screen Technology
MIND Revenue Release Quarter 2 2025 Press Release
From MVP to Full-Scale Product A Startup’s Software Journey.pdf
Tartificialntelligence_presentation.pptx
1. Introduction to Computer Programming.pptx
Building Integrated photovoltaic BIPV_UPV.pdf

Explore Data Distributions Using D3.js

  • 1. Explore Data Distributions Using D3.js ​ Geoff Escandon ​ Technical Architect ​ gescandon@appirio.com ​ @gjescandon ​ 
  • 3. Level up by using visualization library D3.js Convert the SFDC relational data into hierarchical JSON Explore and present our data with D3.js visualizations As your data becomes more complex... Buddy Valastro, President & CEO, Carlo’s Bakery presenting data distributions is essential for success in sales, service, and platform performance.
  • 4. What is D3.js ​ D3.js is a JavaScript library for manipulating documents based on data. ​ http://d3js.org/
  • 5. D3 Concepts Tree Layout - The tree layout produces tidy node-link diagrams of trees using the Reingold–Tilford “tidy” algorithm. https://github.com/mbostock/d3/wiki/Tree-Layout
  • 6. Demo #1: Custom Account Hierarchy View 1.  Account Hierarchies (Account belongs to a parent Account) 2.  Based on D3 – Collapsible Indented Tree 3.  http://bl.ocks.org/mbostock/1093025 4.  Dynamic color coding to highlight key metrics.
  • 7. Code Sample #1: Custom Account Hierarchy View 1.  Review VF structure 2.  Show Soql query and results (hierarchical) 3.  Show JSON output 4.  Show JS which converts data 5.  Source code available on github
  • 8. Code Sample #1: Custom Account Hierarchy View Using the Force.com AJAX toolkit... How do we transform the above relational results to JSON (over there on the right >>) ? ​ Show Soql query and results
  • 9. Code Sample #1: Custom Account Hierarchy View Show JS which converts hierarchical data
  • 10. Demo #2: Account Sunburst 1.  Based on D3 - Sunburst Partition 2.  http://bl.ocks.org/mbostock/4063423 3.  Dynamic sizing and color based on key metrics. 4.  Dynamic levels.
  • 11. Demo #3: Big Data Drill down 1.  Based on D3 - Sunburst Partition 2.  http://bl.ocks.org/mbostock/4063423 3.  See high level distribution patterns in large data sets 4.  Drill down for details
  • 12. Demo #4: Processing Master – child Data 1.  Opportunities that belong to Country__c and Region__c 2.  Based on D3 - Partition Layers 3.  http://mbostock.github.io/d3/talk/ 20111018/partition.html
  • 13. Code Sample #2: Processing Master-child Data Show JS which converts hierarchical data
  • 14. Know your data quality and volumes Know when to query whole sets or partials sets of data Present visualizations to answer specific questions As your data becomes more complex... Buddy Valastro, President & CEO, Carlo’s Bakery Gotchas
  • 15. Demo #5: Gotchas Gotcha: Poor or inconsistent Data Quality can lead to ugly visualizations. Solution: Understand how empty, null, or other invalid data will render in your visualization.
  • 16. Demo #5: Gotchas Gotcha: Depending on the implementation, some visualizations may hide details from you. Solution: ​  Be sure to understand the implementation of the visualization. ​  Use sizing or color to highlight areas where details may be hidden. ​  Query partial data sets.
  • 17. D3.js is sweet for exploring and presenting data Convert hierarchical and relational data into JSON Know the gotchas What we have learned Buddy Valastro, President & CEO, Carlo’s Bakery Explore Data Distributions using D3.js
  • 19. D3.js Reference 1.  http://d3js.org/ 2.  https://github.com/gescandon/df15-explore-data-using- d3 3.  https://leanpub.com/D3-Tips-and-Tricks