vue-data-ui-skilld
Skill184 starsChanged 37 days agoMITView on GitHub
A user-empowering data visualization Vue 3 components library (69 components) for eloquent data storytelling. ALWAYS use when writing code importing \"vue-data-ui\". Consult for component choice, config, theming, slots, tooltips, exports, SSR, debugging, or modifying vue-data-ui, vue data ui.
- Installs packages
In this repository35 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- floating-ui-vue-skilldSkill
- formkit-core-skilldSkill
- motion-v-skilldSkill
- pinia-colada-skilldSkill
- pinia-skilldSkill
- primevue-skilldSkill
- quasar-skilldSkill
- reka-ui-skilldSkill
- shadcn-vue-skilldSkill
- slidev-cli-skilldSkill
- tanstack-ai-vue-skilldSkill
- tanstack-vue-form-skilldSkill
- tanstack-vue-query-skilldSkill
- tanstack-vue-router-skilldSkill
- tanstack-vue-store-skilldSkill
- tanstack-vue-table-skilldSkill
- tanstack-vue-virtual-skilldSkill
- tresjs-core-skilldSkill
- unhead-vue-skilldSkill
- unovis-ts-skilldSkill
- unovis-vue-skilldSkill
- vee-validate-skilldSkill
- vitepress-skilldSkill
- vue-i18n-skilldSkill
- vue-router-skilldSkill
- vue-skilldSkill
- vue-test-utils-skilldSkill
- vuetify-skilldSkill
- vueuse-components-skilldSkill
- vueuse-core-skilldSkill
- vueuse-integrations-skilldSkill
- vueuse-math-skilldSkill
- vueuse-motion-skilldSkill
- vueuse-shared-skilldSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 1 is distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 45
Every component takes a dataset prop and a config object prop.
- Distinctive: line 60
Call exposed methods through a template ref (available per component, see components reference):
- Very specific: line 89
Use VueUiXyCanvas instead of VueUiXy for very large datasets.
- Very specific: line 95
Use legend.selectAllToggle.show: true to offer a select-all checkbox (more than 2 series).
- Very specific: line 96
Import from vue-data-ui/utils for utilities the main entry does not re-export, e.g.
- Very specific: line 97
Do not pass bar type series mixed with continuous { x, y } series in VueUiXy.
≈ “Common” is an estimate: at least 1 in 5 of the 364,980 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
graphieros/vue-data-ui vue-data-ui@3.25.9
- Docs: https://vue-data-ui.graphieros.com/ (per-component pages:
https://vue-data-ui.graphieros.com/docs#vue-ui-<name>) - Repo: https://github.com/graphieros/vue-data-ui
- Requires
vue >= 3.3.0;jspdf >= 3.0.1is an optional peer dep, install it only for the PDF export feature (package.json:112-119). - Types ship with the package; main entry types resolve to
dist/types/vue-data-ui.d.ts(package.json:66-90).
References
- API surface: entry points, import styles, utils, composables, SSR.
- Components: catalog, common props/emits/exposed methods/slots.
- Customization: config patterns, themes, user options, slots, a11y, responsive, big data.
- Migration v3.19.2 to v3.25.9: API deltas incl. the v3.25.0 breaking change.
Setup
npm i vue-data-ui<script setup>
import { ref } from "vue";
import { VueUiDonut } from "vue-data-ui";
import "vue-data-ui/style.css"; // required css
const dataset = ref([
{ name: "A", value: 12 },
{ name: "B", value: 88 },
]);
const config = ref({ theme: "zen" });
</script>
<template>
<VueUiDonut :dataset="dataset" :config="config" />
</template>Every component takes a dataset prop and a config object prop. Pass a partial config; the component merges it over defaults. Prefer computed configs so mutations stay reactive.
Common tasks
Build a typed config from defaults and override safely:
import { getVueDataUiConfig, mergeConfigs, type VueUiXyConfig } from "vue-data-ui";
const config = computed<VueUiXyConfig>(() => mergeConfigs({
defaultConfig: getVueDataUiConfig("vue_ui_xy"), // snake_case component key
userConfig: { chart: { title: { text: "Sales" } } },
}));Call exposed methods through a template ref (available per component, see components reference):
const chart = useTemplateRef("chart");
const data = await chart.value.getData();
const img = await chart.value.getImage({ scale: 2 }); // { imgUri, base64, title, width, height, aspectRatio }
chart.value.showSeries("Series 1"); // or hideSeries("Series 1")Customize tooltips with tooltip.customFormat: ({ seriesIndex, datapoint, series, config }) => string, or richer content via #tooltip-before / #tooltip-after slots. Customize data labels with formatter: ({ value, config }) => string.
Drag tooltips out of the pointer's way with the useTooltipPosition composable (since v3.22.0):
import { useTooltipPosition } from "vue-data-ui/composables";
const chartRef = useTemplateRef("chartRef");
const tooltipPosition = useTooltipPosition(chartRef); // ComputedRef<"left" | "right" | "center">
const config = computed(() => ({ chart: { tooltip: { position: tooltipPosition.value } } }));Render static SVG server-side (no browser needed):
import { createStaticVueUiXy } from "vue-data-ui/ssr"; // or 'vue-data-ui/ssr/vue-ui-xy' (treeshaken)
const svg = await createStaticVueUiXy({ dataset, config });Best practices
- Use
VueUiXyCanvasinstead ofVueUiXyfor very large datasets; tuneconfig.downsample.threshold(LTTB downsampling). Defaults: Xy 1095, XyCanvas 10000, Quadrant/Scatter/Sparkline/SparkTrend 1095 (README.md:979-1002). - With
config.responsive: true, place charts in a container with fixed dimensions; a 100% height container makes the chart grow infinitely (README.md:968-977). - Opt in to pointer cursors with
config.useCursorPointer: true; disabled by default for a11y (README.md:1521-1529). - Enable the a11y alt-text button with
userOptions.buttons.altCopy: trueplus auserOptions.callbacks.altCopycallback (README.md:1488-1519). - Reverse an axis with the dedicated
reverseconfig flags (since v3.20.7), do not hack negative values. X axis:chart.grid.labels.xAxis.reverse; y axis:chart.grid.labels.yAxis.reverse(VueUiXy). - Gate
config.debugandconfig.devHints.enablebehind a dev environment variable; some critical warnings still print (v3.23.0, v3.23.2 release notes). - Use
legend.selectAllToggle.show: trueto offer a select-all checkbox (more than 2 series);@selectLegendalso fires when it is toggled (since v3.19.9). - Import from
vue-data-ui/utilsfor utilities the main entry does not re-export, e.g.adaptColorToBackground(dist/utils.js export list). - Do not pass
bartype series mixed with continuous{ x, y }series inVueUiXy; bars are hidden and a warning is logged (v3.20.7 release notes). #tooltipslots replace default content;#tooltip-before/#tooltip-afterprepend/append instead.
Version limits and breaking changes
- v3.25.0 (breaking):
showOnlyAtModulonow applies a real modulo and themodulodefault changed from 12 to 2; use the newshowFirstAndLast: trueto force edge labels. Affects VueUiXy (+SSR), VueUiStackbar, VueUiStackline, VueUiCandlestick. See migration. - v3 is not breaking vs v2, but some padding configs changed (README.md:185-200).
- Since v3.14.3 locale files are removed; time labels rely on
Intl(v3.14.3 release notes).
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

