wedmaniacW
Denoβ€’3y agoβ€’
10 replies
wedmaniac

Struggling with interactive FreshCharts

Hi there I'm trying to display charts in my fresh js project. i want to have them as islands according to the github repo https://github.com/denoland/fresh_charts the /islands/chart.tsx should look like this
import { Chart as default } from "$fresh_charts/island.tsx";


So i import the library in deno.json
"@fresh-charts/island": "https://deno.land/x/fresh_charts@0.3.1/island.tsx"


and bellow is my /island/chart.tsx
import { Chart as default } from "@fresh-charts/island";

But i get a error: Identifier expected. they have little showcase here
https://fresh-charts.deno.dev/

What am I doing wrong?? πŸ™‚
GitHub
A server-side-rendered charting library for Fresh. Contribute to denoland/fresh_charts development by creating an account on GitHub.
GitHub - denoland/fresh_charts: A server-side-rendered charting lib...
Was this page helpful?