Skip to content

unable to get a working implementation of d3-geo-scale-bar from observable to framework ... #1894

Answered by Fil
jipexu asked this question in Q&A
Discussion options

You must be logged in to vote

Hello,

you probably don't need to do the npm install step, since the import call will download a different copy from npm.

Then, update your import line like so:

import {geoScaleBar} from "npm:d3-geo-scale-bar";

and you can use:

const scaleBar = geoScaleBar().

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jipexu
Comment options

Answer selected by jipexu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants