@d3-maps/vue
v0.7.0
Published
Vue bindings for @d3-maps/core to build reactive D3 SVG maps
Readme
@d3-maps/vue
Reactive SVG maps, powered by D3.
Installation
npm
npm install @d3-maps/vuepnpm
pnpm add @d3-maps/vuebun
bun add @d3-maps/vueUsage
import { createApp } from 'vue'
import { plugin as D3MapsVue } from '@d3-maps/vue'
import App from './App.vue'
createApp(App)
.use(D3MapsVue)
.mount('#app')Nuxt 3
Create ~/plugins/d3-maps-vue.client.ts:
import { plugin as D3MapsVue } from '@d3-maps/vue'
export default defineNuxtPlugin((nuxtApp) => {
nuxtApp.vueApp.use(D3MapsVue)
})Styling
Importing @d3-maps/vue automatically includes @d3-maps/core/index.css
If you need strict stylesheet ordering, load your global reset/theme styles before importing the adapter entry
License
MIT licensed. Copyright © 2020 Georgii Bukharov. See LICENSE for more details.
