vue-data-ui-skilld
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinesegraphieros/vue-data-ui vue-data-ui
vue-data-uigraphieros/vue-data-ui vue-data-ui
vue-data-uiA user-empowering data visualization Vue 3 components library for eloquent data storytelling
Version: 3.15.11 (Mar 2026)
Tags: beta: 2.15.6-beta.3 (Jul 2025), next: 3.1.19-next.1 (Sep 2025), latest: 3.15.11 (Mar 2026)
References: Docs — API reference, guides
一款赋能用户的Vue 3数据可视化组件库,助力生动的数据叙事
版本: 3.15.11(2026年3月)
标签版本: beta: 2.15.6-beta.3(2025年7月), next: 3.1.19-next.1(2025年9月), latest: 3.15.11(2026年3月)
参考文档: 文档 — API参考、使用指南
API Changes
API变更
This section documents version-specific API changes for v3.15.2 — prioritize recent v3.x releases.
vue-data-ui-
NEW:(opt-in) — default changed to
useCursorPointerin v3.15.0; must be set tofalseintrueto enable pointer cursor on clickable elements sourceuserOptions -
NEW:action button — added to context menu in v3.15.0; exposes
altCopyanddatasetin a callback to generate custom alt text sourceconfig -
NEW:styling —
minimap('grab', 'chevron', etc.),handleType, andhandleWidthadded in v3.15.0 to customize zoom minimap handles sourceadditionalHeight -
NEW:in
dashIndices— new dataset property in v3.15.0 allows displaying specific datapoints as dashed segments to indicate estimated data sourceVueUiXy -
BREAKING:files removed — as of v3.14.3, individual locale files are removed in favor of
localesfor computing time labels sourceIntl -
NEW:and
isPrintingImg— booleans now exposed in theisPrintingSvgslot since v3.14.10 to control content during print/export source#svg -
NEW:,
zoomStart, andzoomEnd— new emits added tozoomResetin v3.14.9 to track zoom component interactions sourceVueUiXy -
NEW:in Legend — opt-in feature added in v3.13.0; displays a checkbox to select/unselect all series when more than 2 series exist source
selectAllToggle -
NEW:customization —
skeletonConfignow allows passing customVueUiSparklineandskeletonConfigin v3.13.7 sourceskeletonDataset -
NEW:color support — added in v3.13.6, allowing the use of OKLCH color space across all components source
oklch -
NEW:in
side— the handle side ('left' | 'right') is now exposed in the zoom formatting callback since v3.13.5 sourcezoom.customFormat -
NEW:— added to multiple charts in v3.13.4 to control the maximum width of the zoom component source
zoom.maxWidth -
NEW:in
pulse— optional animated pulse effect with trail added to line mode in v3.13.3 sourceVueUiSparkline -
NEW:modes — straight line and arrow modes added to the built-in annotator in v3.12.0 source
Annotator
Also changed: / on minimap v3.11.1 · trail refinement v3.15.2 · / support v2.4.42 · option (experimental) · pixel labels v3.14.5 · in minimap v3.14.8
scaleMinscaleMaxpulsezoom.startIndexendIndexuseCanvasAnnotatordashIndices本节记录了 v3.15.2版本的特定API变更,请优先关注最新的v3.x版本更新。
vue-data-ui-
新增:(可选启用)——在v3.15.0版本中默认值改为
useCursorPointer;需在false中设置为userOptions,才能为可点击元素启用指针光标 sourcetrue -
新增:操作按钮——在v3.15.0版本中添加到右键菜单;在回调中暴露
altCopy和dataset,用于生成自定义替代文本 sourceconfig -
新增:样式定制——v3.15.0版本新增
minimap('grab'、'chevron'等)、handleType和handleWidth,用于自定义缩放小地图的手柄样式 sourceadditionalHeight -
新增:中的
VueUiXy——v3.15.0版本新增的数据集属性,允许将特定数据点显示为虚线线段,以表示估算数据 sourcedashIndices -
破坏性变更:移除文件——从v3.14.3版本开始,移除了独立的语言环境文件,改用
locales来计算时间标签 sourceIntl -
新增:和
isPrintingImg——从v3.14.10版本开始,在isPrintingSvg插槽中暴露这两个布尔值,用于控制打印/导出期间的内容显示 source#svg -
新增:、
zoomStart和zoomEnd——v3.14.9版本为zoomReset新增了这些事件,用于跟踪缩放组件的交互 sourceVueUiXy -
新增:图例中的——v3.13.0版本新增的可选功能;当系列数量超过2个时,显示一个复选框来全选/取消全选所有系列 source
selectAllToggle -
新增:定制——v3.13.7版本中
skeletonConfig现在允许传入自定义的VueUiSparkline和skeletonConfigsourceskeletonDataset -
新增:颜色支持——v3.13.6版本新增,允许在所有组件中使用OKLCH颜色空间 source
oklch -
新增:中的
zoom.customFormat——从v3.13.5版本开始,在缩放格式化回调中暴露手柄的侧边('left' | 'right') sourceside -
新增:——v3.13.4版本为多个图表新增了该属性,用于控制缩放组件的最大宽度 source
zoom.maxWidth -
新增:中的
VueUiSparkline——v3.13.3版本为线条模式新增了可选的动画脉冲效果及轨迹 sourcepulse -
新增:模式——v3.12.0版本为内置注释工具添加了直线和箭头模式 source
Annotator
其他变更: 小地图上的/(v3.11.1)· 轨迹优化(v3.15.2)· 支持/(v2.4.42)· 选项(实验性)· 像素标签(v3.14.5)· 小地图中的(v3.14.8)
scaleMinscaleMaxpulsezoom.startIndexendIndexuseCanvasAnnotatordashIndicesBest Practices
最佳实践
-
Usefor large datasets (1000+ points) with frequent updates (e.g., 100ms) to avoid browser performance bottlenecks from managing thousands of SVG DOM nodes source
VueUiXyCanvas -
Enablespecifically for
responsive: trueandVueUiXywhen placing them in flexible containers, ensuring they correctly fill parent height (setVueUiDonuton parent) sourceheight: 100% -
Programmatically control series visibility using the exposedand
showSeries(name)methods instead of manipulating the dataset or triggering legend events sourcehideSeries(name) -
Opt-in to the cursor pointer for clickable chart elements via, as it is disabled by default for better accessibility compliance source
userOptions.useCursorPointer: true -
Implement custom alt text for charts by enablingand providing a tailored string through the
userOptions.buttons.altCopy: truecallback sourceuserOptions.callbacks.altCopy -
Configure PDF export orientation and scaling directly into handle different chart aspect ratios without requiring manual JsPDF wiring source
userOptions.print -
Signal estimated or projected data inby passing
VueUiXyin the dataset to render specific line segments as dashed sourcedashIndices -
Prevent label overlapping in dense charts by setting(in Donut) or
hideLabelsUnderValue(in Treemap) to suppress labels for small segments sourcehideUnderProportion -
Reverse the y-axis (e.g., for ranking) by providing negative values in the dataset and using absolute valuefor grid labels and tooltips source
formatters
ts
// Reversed y-axis via negative values and absolute formatting
const config = {
chart: {
grid: { labels: { yAxis: { formatter: ({ value }) => Math.abs(value) } } }
}
}- Fine-tune the responsive behavior of table-based charts (like ) by adjusting
VueUiCarouselTableto control exactly when the layout switches for mobile sourceresponsiveBreakpoint
-
对于包含1000+数据点且需要频繁更新(如100ms一次)的大型数据集,使用,避免因管理数千个SVG DOM节点导致浏览器性能瓶颈 source
VueUiXyCanvas -
当将和
VueUiXy放置在弹性容器中时,需专门启用VueUiDonut,并确保父容器设置responsive: true,以保证它们能正确填充父容器高度 sourceheight: 100% -
使用暴露的和
showSeries(name)方法以编程方式控制系列的可见性,而非操作数据集或触发图例事件 sourcehideSeries(name) -
通过设置为可点击的图表元素启用指针光标,因为默认情况下该功能是禁用的,以更好地符合无障碍访问规范 source
userOptions.useCursorPointer: true -
通过启用并在
userOptions.buttons.altCopy: true回调中提供定制字符串,为图表实现自定义替代文本 sourceuserOptions.callbacks.altCopy -
在中直接配置PDF导出的方向和缩放比例,以适配不同的图表宽高比,无需手动编写JsPDF代码 source
userOptions.print -
在中通过在数据集里传入
VueUiXy,将特定线段渲染为虚线,以此标记估算或预测数据 sourcedashIndices -
在密集图表中,通过设置(适用于Donut图表)或
hideLabelsUnderValue(适用于Treemap图表)来隐藏小分段的标签,避免标签重叠 sourcehideUnderProportion -
若要反转Y轴(如用于排名场景),可在数据集中传入负值,并为网格标签和提示框使用绝对值格式化器source
formatters
ts
// Reversed y-axis via negative values and absolute formatting
const config = {
chart: {
grid: { labels: { yAxis: { formatter: ({ value }) => Math.abs(value) } } }
}
}- 通过调整来微调基于表格的图表(如
responsiveBreakpoint)的响应式行为,精确控制布局何时切换为移动端适配模式 sourceVueUiCarouselTable