UNPKG

vue-data-ui

Version:

A user-empowering data visualization Vue 3 components library for eloquent data storytelling

14 lines (13 loc) 508 B
import { ref as r, onMounted as s, nextTick as i } from "vue"; function v({ config: t }) { var u; const e = r(null), a = (t == null ? void 0 : t.text) || "Chart visualization", l = ((u = t == null ? void 0 : t.subtitle) == null ? void 0 : u.text) || ""; return s(() => { i(() => { e.value && (e.value.setAttribute("aria-label", `${a}${l ? `. ${l}` : ""}`), e.value.setAttribute("role", "img"), e.value.setAttribute("aria-live", "polite")); }); }), { svgRef: e }; } export { v as u };