Own your code
Your dashboard, inside your website
Explore Sample Superstore through four Vue components, with period comparisons, linked filters and the SQL behind every view.
- Sample Superstore line items
- 9,994
- Vue dashboard views
- 4
- iframes
- 0
Sales performance — Sample Superstore
Choose a period or a metric, then select a region or category to filter the other views. Open SQL to inspect each query and its returned row count.
Loading the comparison…
Code that belongs in your page
No iframe: this is the page's own code. The KPI cards, charts and table are Vue components, placed between paragraphs just like any other part of your website.
Sales over 365 days
Use the arrow keys, Home or End to inspect a period; Escape clears the selection.
SQL · comparison trend
SQL
See what your selection changes
Each view runs SQL. Change the period or select a filter, then open SQL to see the exact statement that supplied its rows. Current and prior periods stay together.
Click a bar to filter the other views. Click it again to remove the filter.
All regions and categories
Sales by Region
SQL · breakdown
SQL
Query your data, share your dashboard
Use the Vibedasher SDK to query your managed datasets. Build the presentation in your own code and share it from your own website.
| Sub-category | Current period | Prior period | Change |
|---|
In your site: one query call, your Vue markup
Supply your SDK client to a Vue component. This small example sends SQL with client.query and renders the returned rows.
<script setup lang="ts">
import { onMounted, ref } from 'vue'
import type { Vibedasher } from '@vibedasher/client'
import { renderDemoSql } from './query'
import type { QueryParams } from './queries'
const props = defineProps<{
client: Pick<Vibedasher, 'query'>
sql: string
params: QueryParams
}>()
const rows = ref<Record<string, unknown>[]>([])
onMounted(async () => {
const sql = renderDemoSql(props.sql, props.params)
const result = await props.client.query({ sql })
rows.value = result.rows
})
</script>
<template>
<ul>
<li v-for="(row, index) in rows" :key="index">{{ row }}</li>
</ul>
</template>renderDemoSql is this example's local scalar renderer. The SDK receives completed SQL, not template bindings in params. Use your managed dataset alias in your site's queries.