Skip to content

Import additional js modules #54

@maxxpower007

Description

@maxxpower007

Hi Juba,

Just a quick question regarding adding additional js modules.
For example if I want to include the additional projections which comes in the d3-geo-projection library.

Something like:

js('import {geoAitoff} from "https://cdn.skypack.dev/d3-geo-projection@4"')

Plot.plot({
"projection": {
"type": d3.geoAitoff,
...
})

But that doesn't seem to work...
Is there any way to do this..?

Cheers
Maxx

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions