rclement / datasette-dashboards

Datasette plugin providing data dashboards from metadata
https://datasette-dashboards-demo.vercel.app
Apache License 2.0
137 stars 7 forks source link

Embedding chart without filter: 404 not found #233

Open hendralinux opened 3 weeks ago

hendralinux commented 3 weeks ago

I created a dashboard without the need for any filter, however it seems like the url to be used as src in iframe requires a filter as in ../chart-name/embed?filter_name=value coz simply using ../chart-name/embed or even ./chart-name/embed?dummy returns 404 error.

From sample metadata:

<iframe
  src="/-/dashboards/my-dashboard/my-chart/embed?start_date=2023-01-01&end_date=2023-12-31"
  frameborder="0"
  width="100%"
  height="600"
  allowtransparency
>
</iframe>
rclement commented 1 day ago

@hendralinux: sorry but I cannot reproduce your issue. Could you provide a minimal reproducible sample (metadata.yml, html template) for the issue you are experiencing?

FYI, I tried to reproduce the issue with a minimal example: