Notebook - Welcome to Notebook

Contact/Report Bugs
You can contact me at: bkenwright@xbdev.net












D3 Principles D3 is Data Driven Library written in JavaScript for Dynamically manipulating the Document Object Model DOM Working with data and shapes Providing effective and efficient user interactions Enabling smooth transitions between user interfaces UIs Layering managing visual elements in linear hierarchical network and geographical forms Standards Key Terms There are a number of standards definitions that are important when using D3 as these terms words are common heavily used in web development circles This includes HyperText Markup Language HTML Document Object Model DOM Cascading Style Sheets CSS Scalable Vector Graphics SVG JavaScript If you re already familiar with these concepts then you may skip ahead however to be complete we ll explain each of them in detail HyperText Markup Language HTML As you have have realised by now HTML is the language used to structure the contents of a web page HTML is a text based language with the extension html A minimum bare bone example of what a HTML file looks like DOCTYPE html html lang en head meta charset utf8 title Your Title title head body comment body htm You should notice the essential tags which are common to nearly all web pages html meta title head body In addition you can add comments to html files which are not displayed on screen these are between the tags Document Object Model DOM After the web page is loaded the structured HTML tags are parsed and allow the web browser to build a hierarchical structure of the page Every tag in the HTML file is converted to an element object in the DOM in a parent child hierarchy This makes your HTML form a logical structure that is easy to navigate and manage Once the DOM is formed you re ready to add modify or remove any elements on the page using JavaScript and D3 Example of a simple DOM given the following HTML DOCTYPE html html lang en head meta charset utf8 title Your Title title head body div h1 Hello Sweet World h1 p Would the code taste sweeter in any other language p div body htm Note when you write your html it s usually cleaner and easier to read if you indent the tags based on their depth i e parent child dependency The document object model for the above HTML would be Document HTML head title Your Title body div h1 Hello sw p Would the Cascade Style Sheets CSS HTML gives your web page content and structure but no styling visual information This is where CSS comes in CSS styles makes your web page more attractive visually nicer to look at sexy CSS is a Style Sheet Language and is used to describe the visual aspects of your document page Each of the elements and objects visual presentation details are defined using CSS e g color margins position and so on Scalable Vector Graphics SVG SVG allows you to create bespoke detailed graphical effects Importantly SVG is not a direct image i e doesn t generate pixels Instead as the name suggests it generates vector art The scalable word in SVG means the graphic is able to resize to the necessary dimensions without distortion Nearly all browsers support SVG graphics SVG is important as it s a crucial tool for creating powerful data visualizations using D3 You create and use SVG graphics as you would any other element You use the svg tag to specify a region area that you ll drawn on vector lines and shapes For example svg width 500 height 500 svg The default measurement of SVG height width is in pixels so you do not need to specify any units Now if you wan tot draw a rectangle in your svg region you d type the following svg width 400 height 300 rect x 0 y 0 width 300 height 200 rect svg svg width 400 height 250 rect x 0 y 0 width 300 height 200 rect svg You can draw other shapes in the SVG element area as well not just rectangles Range of shapes and drawing styles including lines circles ellipses text and paths Similar to HTML elements the SVG elements also have styling options For example to set the background color using the fill keyword inside the rect tag You can even specify the border line color using the stroke keyword as shown below svg width 400 height 250 rect x 0 y 0 width 300 height 200 fill blue stroke width 10 stroke pink rect svg JavaScript JavaScript is a powerful scripting language that you use to execute custom commands to your browser JavaScript is a loosly typed language that interactives with the HTML elements DOM and styles to ame the web user interface for interactive and dynamic A loosely typed language is a programming language that does not require a variable to be defined To ensure consistency between browsers the JavaScript language must conform to a set of standards ECMAScript standards These standards help ensure core features and funcitonality work the same for all of your programs and your D3 library

tyle Sheets CSS HTML gives your web page content and structure but no styling visual information This is where CSS comes in CSS styles makes your web page more attractive visually nicer to look at sexy CSS is a Style Sheet Language and is used to describe the visual aspects of your document page Each of the elements and objects visual presentation details are defined using CSS e g color margins position and so on Scalable Vector Graphics SVG SVG allows you to create bespoke detailed graphical effects Importantly SVG is not a direct image i e doesn t generate pixels Instead as the name suggests it generates vector art The scalable word in SVG means the graphic is able to resize to the necessary dimensions without distortion Nearly all browsers support SVG graphics SVG is important as it s a crucial tool for creating powerful data visualizations using D3 You create and use SVG graphics as you would any other element You use the svg tag to specify a region area that you ll drawn on vector lines and shapes For example svg width 500 height 500 svg The default measurement of SVG height width is in pixels so you do not need to specify any units Now if you wan tot draw a rectangle in your svg region you d type the following svg width 400 height 300 rect x 0 y 0 width 300 height 200 rect svg svg width 400 height 250 rect x 0 y 0 width 300 height 200 rect svg You can draw other shapes in the SVG element area as well not just rectangles Range of shapes and drawing styles including lines circles ellipses text and paths Similar to HTML elements the SVG elements also have styling options For example to set the background color using the fill keyword inside the rect tag You can even specify the border line color using the stroke keyword as shown below svg width 400 height 250 rect x 0 y 0 width 300 height 200 fill blue stroke width 10 stroke pink rect svg JavaScript JavaScript is a powerful scripting language that you use to execute custom commands to your browser JavaScript is a loosly typed language that interactives with the HTML elements DOM and styles to ame the web user interface for interactive and dynamic A loosely typed language is a programming language that does not require a variable to be defined To ensure consistency between browsers the JavaScript language must conform to a set of standards ECMAScript standards These standards help ensure core features and funcitonality work the same for all of your programs and your D3 library

3dplot
a4print
about
acejs
acejs2
acejs3
aessecurity
angularjs
animbackgroundimage
aseformat
assert
asteroidsjs
backgrounds01
backgrounds02
backgrounds03
barnsleyfern
base26
base64
bib
binary
bodypix
bouncy
box2dweb
breakoutjs
browserversion
buslanes
busybutton
bvhreader
calendar
candycrush
candycrush2
canvas
canvas2
canvas3
canvasmandelbrot
canvasmandelbrot2
canvasnumbers
canvaszoom
capsule
changingimages
chaosgame
chaosrandom
chaosrandomhisto
chaosrandomhisto2
chatgptusingopenai
chatgptusingopenai2
chatgptusingopenai3
checkboxtoggle
chinesetiles
classes
classfeatures
clipboardbutton
clonenode
codedropdown
codemirror
codemirror2
collada
colorpick
columnresizer
contextmenu
convnet
cookiebanner
countdown
countdown2
countdown3
crop
css3dbarchart
css3dbarchart2
css3dbook
css3dscene
csscube
csscube2
csscube3
csscubevideos
cssfilelist
csshas
csspulse
cssresizeaspect
cssspin
csszooming
csvtoarray
curleffect
customcheckbox
d3datamap
d3js
d3js10
d3js11
d3js2
d3js3
d3js4
d3js5
d3js6
d3js7
d3js8
d3js9
d3jsanimatedgrid
d3jsarctransition
d3jsarctransition2
d3jsaxis
d3jsaxischanging
d3jsbars
d3jsbrushing
d3jsbuslanes
d3jsbuslanes2
d3jscalendar
d3jscheat
d3jsclock
d3jscloudmap
d3jscogs
d3jscolors
d3jscovid
d3jscovid2
d3jscovid3
d3jsdashboard
d3jsdashboard2
d3jsdashboard3
d3jsdatakeyfunction
d3jsdensity
d3jsdragresizing
d3jsdragresizing2
d3jseach
d3jsease
d3jsevents
d3jsflower
d3jsforcegroups
d3jsforces
d3jsforces2
d3jsfractaltree
d3jsgeo
d3jsgroupbars
d3jsgroups
d3jsheatmap
d3jshex
d3jshierarchies
d3jshierarchies2
d3jshistogram
d3jshistogram2
d3jshistogram3
d3jshistogram4
d3jsinterpolate
d3jsjoin
d3jskmean
d3jskmean2
d3jsline
d3jsline2
d3jsline3
d3jsline4
d3jslinetransition
d3jslinetransition0
d3jslinetransition2
d3jsmaplocations
d3jsmaps
d3jsmaps2
d3jsmaps3
d3jsmisc
d3jsmisc2
d3jsmodule
d3jsmodulecolor
d3jsmultistyles
d3jsnobel
d3jsoverlappinggraphs
d3jspanel
d3jspie
d3jspieinterpolate
d3jssankey
d3jssankey2
d3jsscatter
d3jsshapes
d3jsslider
d3jsspending
d3jsspending2
d3jsspiralplot
d3jsspirograph
d3jssquare
d3jsstack
d3jsstackedbar
d3jsstackedbar2
d3jssunburst
d3jssunmoon
d3jssvglines
d3jssymbols
d3jstimelines
d3jsuk
d3jsvoronoi
d3scatterplot
d3timeline
d3timeline2
datalist
datamuse
date
dblclickhighlight
deviceorientation
dictionaryapi
dockermenu
doodlepad
downloadgif
dragdroplistitems
dragrotateresizediv
dragrotateresizediv2
dragrotateresizediv3
dragrotateresizediv4
dragrotateresizefontsize
dragselectbrush
drawlinesdiv
dropdown
dualquaternionimages
dynamicgrid
easefunctions
easeinterpolate3dplots
echart
echart2
echart3
encapsulation
epubviewer
errorstack
excalidraw
excalidraw2
excalidraw3
excalidraw5
expandable
faker
fetchplus
fileupload
fixedtopbar
fluiddynamics
fluiddynamics2
fluiddynamics3
fluidsmokedynamics
fluidsmokedynamics2
fonts
fonts2
footerbar
fractalmaze
fractalmaze2
fractalnoiseimage
fractals
fractals2
fractaltree
freesvg
fresnel
froggerjs
gantt
gifgiphyapi
gifhex
gltffromscratch
gradients
griditems
griditems2
griditems3
griditems4
gridworms
heat
hexview
hexview2
highlight
icons
icons2
iframes
ik
imagetracertosvg
imgur
inputfile
invadersjs
ipynb
ipynb2
ipynb3
ipynb4
isbn13
isbn2
jpghex
jquery
jquery2
jqueryui
jqueryui2
jsdraganddrop
jsfire
jslint
jsobfuscate
jsraytracer
jstree
jstree2
jszip
jszipimages
jszipread
keyframes
l2dwidget
lda
leftmenu
less
less2
lineargradientimage
linenumbers
loadimagefromfile
makepdf
maps
markdown
markdown2
markdownalerts
markdownalerts2
markdownbookmarks
markovimage
markovpixelblocks
mathjax
matrices
matsandvects
mazegamejs
md2tex
metrotiles
metrowindows
milestones
minkowski2dboxes
misc
misc2
modules
myipdetails
neataptic
networkstructures
networkstructures2
neural_network_plot_in_vs_out
neuralnetworkarrays
neuralnetworkblocks
neuralnetworksinewave
neuralnetworksnolibs
neuralnetworkvisualization
number
obj
objtojson
openaiimages
opencv
opencv2
opencv3
opencv4
opencv5
outline
p2
p5fractalleaf
p5fractalshape
p5js
p5js2
p5js3
p5jsanimatedcover
p5mengercube
p5snowflakes
palindrome
panel
parallax
paste
paste2
pasteimgfromurl
pdfjs
pdfjs2
pdfkit
pdfkit2
pdfkit3
pdfkit4
pdfkit5
pdfkit6
pdfmake
pdfmake2
pdfmake3
pdfmake4
pdfmake5
pdfmake6
perlin
perlin2
perlin3
perspective
pexels
playground
plotly
plotlynoise
plotlyranddist
plyloader
plyloader2
pngtxtencoder
pongjs
pptxgenjs
prettycode
prism
prn
problems
progress
pseudorandom
px2svg
python
quotes
racergame
random
randomcalcpie
randomgenerator
randomprofilepatterns
randomsinhistogram
randomstring
rating
rayambient
raymonte
raymonteprogressive
raymonteprogressive2
raymontewarmstart
reexpcross
reexpcross2
regex
regexbib
regexpfixbib
regexpmultiline
repeatwordsregexp
resizabletable
resizabletable2
revealjs
revealjs2
revealjsmulti
ritalanguage
ritalanguage2
ritalanguage3
rotateimg
rough
rsapublicprivatekeys
rss
rss2
sankey
scrappingsvg
scrolltext
scrolltext2
scrollwidth
sdfboxinboxtwist
sdfhollowbox
setintervalexception
shareurl
shuffle
sidecomment
similarity
simplehighlighter
simpleplatformgamejs
sinecanvas
sliderpopout
slides
smileys
snowfall
snowman
sound
soundsignal
sphererayintersection
springs
sqljs
steganography
stereogram
stringmatching
svg
svgchaos
svgdragresize
svgdragresize2
svgdragresize3
svgdragrotate
svgdrawing
svglines
svglines2
svglines3
svglines4
svglines5
svglinesmandelbrot
svgpathsdragrotate
svgpathsdragrotateresize
svgpie
svgpie2
svgpie3
svgpiepath
svgpiepath2
svgrandomfaces
symbols
synaptic
synaptic2
synonyms
tablerotatecells
tablerotatecells2
tablerotatecells3
tablerotatecells3b
tablerotatecells4
tables
tablezebra
tabularjs
tabularjs2
tabulatordownload
tagcanvas
tensorflowgan
tensorflowjs
tensorflowjsbasic
tensorflowjscnn
tensorflowjssinewave
tensorflowjssound
tensorflowmobilenet
tetrahedronfractal
tetrahedronfractalfolding
tetris
textarea
textareaauto
textareadiv
textareadiv2
textmaskimage
theirorthere
thesaurus
threejs
threejs2
threejs3
threejs4
threejsgltf
threejstokyo
tiles
toaster
tooltip
transition
transitionexpandabledropdown
treeview
treeview2
tricks
tshirt
tshirt2
tshirt3
turningpages
unsplash
urlblob
urlblob2
userdefinepoints
vector
videos
videos2
visualsort
vue
w2ui
w2uientertextdialog
webcam
webgl
webgl2
webgl3
webgl4
webgl5
webglbasic1
webglbasic2
webglcube
webglfov
webglfrustum
webgljson
webglleaves
webgllighting
webglorthographic
webglpoints1
webglpoints2
webglpoints3
webglsquare
webgltexture1
webgltexture2
webgltexture3
webgltransforms
webgltriangle
webgpu
webgpu10
webgpu11
webgpu12
webgpu13
webgpu14
webgpu15
webgpu16
webgpu17
webgpu2
webgpu3
webgpu4
webgpu5
webgpu6
webgpu7
webgpu8
webgpu9
webgpubars
webgpubuffers
webgpubuffers2
webgpucellnoise
webgpuclouds
webgpuclydescope
webgpucompute
webgpucubemap
webgpucubemap2
webgpudeferred
webgpudepth
webgpudof
webgpudrops
webgpuetha
webgpufire
webgpufractalcubes
webgpuglassrain
webgpugltf
webgpugltf2
webgpugrass
webgpugrid
webgpukernel
webgpukleinian
webgpulabupdates
webgpulighting
webgpumandelbrot
webgpumeta3d
webgpumetaballs
webgpumouse
webgpunoise
webgpunormalmapping
webgpuobj
webgpuparallax
webgpuparallax2
webgpuparallax3
webgpuparallaxshadow
webgpuparallaxshadow2
webgpupixel
webgpuquad
webgpuray1
webgpuraytracing
webgpuraytracing2
webgpushadowmaps
webgpushadowmaps2
webgpusierpinski2d
webgpusierpinski3d
webgpusinusoid
webgpussao
webgpustadiumobj
webgpuswirl
webgputestpipe3
webgputoon
webgputopology
webgputt
webgpuvolcloud
webgpuwater
webgpuwireframe
webgpuwireframe2
webpcanvas
webworkers
webxr
webxr2
wiggly
wikipedia