evidence-dev / evidence

Business intelligence as code: build fast, interactive data visualizations in pure SQL and markdown
https://evidence.dev
MIT License
4.39k stars 210 forks source link

mdx-report? #93

Closed swuecho closed 3 years ago

swuecho commented 3 years ago

I wish evidence could combine with mdx and using the extensibility of mdx (bring your own component). Spent several hours for a small report. feel too rigid and hard to use. (might be due to the project is still alpha).

https://mdxjs.com/projects

mcrascal commented 3 years ago

@swuecho thanks for trying it out! What were some of the most rigid/ hard to use parts of the experience? We've got a long list of improvements we'd like to make before we reach beta, but we'd love to hear what stuck out to you.

Happy to chat on slack as well if you'd prefer. Feel free to dm me.

In terms of mdx -- Evidence is built on svelte, and uses mdsvex, which is the svelte version of mdx. If you're comfortable with JS/HTML/CSS, you can write your own components and import them into your markdown docs pretty easily. We're going to add documentation on this as well.

swuecho commented 3 years ago
  1. custom formatter. partially because I was working on none english report.
  2. plot configuration api. might be the doc is not complete yet. docs on how to refer the query data in custom components should be great.