ghalex / vue3-charts

Vue3-Charts is an SVG-based charting library that is very easy to use and highly customizable
https://vue3charts.org
MIT License
135 stars 23 forks source link

my nuxt app crashes as soon as I install this library! #48

Open hmmmzaDev opened 1 year ago

kazak1377 commented 1 year ago

You should wrap chart component into 'ClientOnly' like this

    <ClientOnly>
        <Chart
            :data="data"
            :margin="margin"
            :direction="direction"
            :axis="axis"
        >
            <template #layers>
               ...
            </template>

            <template #widgets>
               ....
            </template>
        </Chart>
    </ClientOnly>