muratkemaldar / using-react-hooks-with-d3 Goto Github PK
View Code? Open in Web Editor NEWCode from the video tutorial series "Using React (Hooks) with D3"
Code from the video tutorial series "Using React (Hooks) with D3"
Hey
I've been enjoying your videos, I wanted to learn about d3 and need to build a racing bar chart so great!
I'm having some problems converting your code into Typescript, using @types/d3. Generally it's OK with things like NumberValue expected rather than Number or String. But I'm having trouble with the call function here
svg.select('.x-axis').style('transform',
translateY(${dimensions.height}px)).call(xAxis);
Argument of type 'Axis' is not assignable to parameter of type '(selection: Selection<BaseType, unknown, null, undefined>, ...args: any[]) => void'.
Are you thinking about adding Typescript versions as well at any stage, so I can look at them as I convert?
Thanks
Tom
Getting this error while running branch locally (12-geo branch)
TypeError: svg.selectAll(...).data(...).join(...).on(...).attr(...).transition is not a function
once I comment transition() method, map renders fine. But when I click any country getting below error
TypeError: Cannot read property 'name' of undefined
Tuning the SVG size
Hi Sir, how to make the SVG full screen in react?
Thanks so much!!
how to draw multi line zoomable chart with daterange filter
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.