The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:
TypeScript analyticsbibusiness-intelligencebusinessintelligenceclojuredashboarddatadata-analysisdata-visualizationdatabasemetabasemysqlpostgrespostgresqlreportingslacksql-editorvisualization
import {
InteractiveDashboard,
MetabaseProvider,
defineMetabaseAuthConfig,
} from "@metabase/embedding-sdk-react";
/**
* This creates an auth config to pass to the `MetabaseProvider` component.
* You'll need to replace the `metabaseInstanceUrl` and the `apiKey` values.
*/
const authConfig = defineMetabaseAuthConfig({
metabaseInstanceUrl: "https://metabase.example.com",
apiKey: "YOUR_API_KEY",
});
/**
* Now embed your first dashboard. In this case, we're embedding the dashboard with ID 1.
* On new Metabases, ID 1 will be the example dashboard, but feel free to use a different dashboard ID.
*/
export default function App() {
return (
<MetabaseProvider authConfig={authConfig}>
<InteractiveDashboard dashboardId={1} />
</MetabaseProvider>
);
}