The example is not using canvas. It has just used a variable named canvas to refer to the outer div.
var canvas = d3.select('#wrapper')
It is just about possible to use d3 with canvas, but highly irregular, and pretty far removed from the intention of d3 which is in essence, a specialised data to graphic dom manipulation library.
n.b. an article about using d3 with canvas: https://bocoup.com/weblog/d3js-and-canvas/
- Drawing d3 charts without svg
- How to make d3.js generate an svg without drawing it?
- C3.js SVG visualization to Canvas with canvg - Line charts filled with black rectangles , "ERROR: Element 'parsererror' not yet implemented"
- How can I animate infinite marker movement down an SVG path without very high CPU usage?
- Select SVG elements by making a free-hand drawing around them
- Thick Bezier curves in SVG without artifacts
- Drawing bar charts vertically after each other d3.js
- How do you move an SVG around a webpage without triggering slow redraws?
- How to transform (rotate) svg text element without changing coordinates?
- Creating SVG elements without rendering them
- update display in loop when drawing many d3 svg objects
- Using d3 SVG Scale without translate
- How to make to drawing a SVG with D3.js?
- How do I import SVG to Illustrator with CSS without errors?
- How to get SVG path data of TopoJSON feature without adding it to the DOM?
- d3.js svg drawing contour lines from (geo/topo)json
- d3 svg charts on ie8 (Windows XP)
- SVG implementation of Monotone cubic interpolation without a Library like d3
- Convert geoJSON to SVG on device without using external service
- render multiple d3 charts without overwriting each other
- How do I fit these two charts onto one SVG
- Increasing font size in C3 charts without cutting off the text
- How to set background color for svg text tspan without foreign object?
- Issues drawing multiple NVD3.js charts on dynamically-created div
- Angular: async pipe and drawing svg
- Using D3 in React without svg for table rows arn't rendering
- d3 svg drawing rect bar chart not work in IE11
- Drawing a SVG with d3.js while tab is in background
- SVG path drawing and filling with image
More Query from same tag
- SVG Graph Generated Using D3.js disappearing when scrolling in Safari
- How to make d3 milestone Shape
- Plot d3 chart on to Leaflet / Mapbox map
- Bind colors to categories in d3 charts
- How to setup node environment to run ES6 codes involving syntax like `import ... from ...`?
- d3 hierarchy ability to average children node values
- D3 Transition: Rotation and Translation
- Smooth update to x axis in a D3 line chart?
- How to use nvd3 indentedTree with AngularJS
- d3.js create the pie chart but square shaped
- Button to download inpage SVG code as an SVG file?
- add data to chart using c3.js
- Transforming object data to array for d3plus-react
- d3js: why doesn't first bar disappear using exit method?
- D3 force directed uncaught type error
- How to solve the overlapping tick texts on xAxis in d3.js
- How to create time scale in d3?
- Why Babel 7 uses require() function for browser which knows nothing about it?
- how to add mouse events to force directed graph using the d3 canvas renderer?
- stacking transforms in D3
- D3 - Update bar chart per 2 seconds
- d3 animation wordCloud flyin
- Check if URL exists within a function in D3.js
- dc.js x-axis displaying as decimal rather than whole number
- Is there any benefit installing d3.js via npm for Angular 2 TypeScript project?
- d3 js - trouble updating text elements in multiple line chart
- Passing Object function into data() in d3
- Label above d3 chart itself
- Image onLoad event is not triggered using Chrome on iOS