Custom charts and graph

#1

Hi,

It will be wonderful if we can use a library like this https://apexcharts.com (in javascript) specialy to to embed charts.

I thinks it’s very hard to custumize graph and charts

#2

Hi @gsterk
You kinda can do that - just instead of using embed, you would get the data with API and use ApexCharts to display it.

#3

Thks for your quick reply flamber,

You have right to embed a question,but when i design a dashboard with metabase, how can i use this library (apexchart) in my embeded dashboard ?

#4

If you want to manage all the graphs at a detailed level, then perhaps Metabase is not the right choice. Maybe redash.io would be better?
Metabase is focused on the end-user and trying to empower them to get data, which is normally only available to database administrators and programmers.
So if you want to use a different chart library, you would have to use the API.

#5

Hi,

Ok, but with API, can I get all raw data of all questions of a specific dashboard in metabase ?
Thanks

#6

Yeah, that’s how Metabase works - it actually uses the API to pull all the information.
You can check all the endpoints here: https://github.com/metabase/metabase/blob/master/docs/api-documentation.md

#7

ok so /api/dashboard/:id give me a list of question id
and then /api/question/:id give me the data ?

#8

GET /api/dashboard/:id will return all the cards on that dashboard and then you’ll POST to /api/card/:id/query to get the data.
Check your browser console’s Network-tab when browsing around in Metabase for hints on which endpoints to use.

#9

OK thanks for your help.

I am going to read carefully the API doc.

#10

:clap::clap::clap: Great post!

I am very impressed with the many possibilities of Metabase!

1 Like