Skip to content

Releases: unovue/vue-charts

v0.4.0

22 Mar 16:29

Choose a tag to compare

Added

  • feat(text): support default slot as text content (#24)
  • feat(tooltip): type cursor slot props and align with Recharts (#24)

Fixed

  • fix(axis): revert attrs forwarding in CartesianAxis (#24)
  • fix(axis): remove duplicate class and forward style in XAxis/YAxis
  • fix(axis): correct axisLine prop type to boolean | SVGAttributes (#23)
  • fix(filterProps): add kebab-case stroke attribute keys to SVGElementProps (#23)
  • fix(cartesian-axis): correct axisLine prop type from string to boolean (#23)

Contributors

v0.3.0

22 Mar 10:24

Choose a tag to compare

Added

  • feat: implement Treemap component with flat mode, nest mode (breadcrumb navigation), built-in tooltip, entrance animation, and arrow indicator for nest nodes
  • feat: add treemap layout utility (d3-hierarchy squarify)
  • feat: implement ReferenceDot component with #shape slot
  • feat: implement Customized component
  • feat: implement Polygon shape component
  • feat: export Treemap, Text, and Customized from public API
  • feat: add public hooks — tooltip (useIsTooltipActive, useActiveTooltipCoordinate, useActiveTooltipLabel), layout (usePlotArea, useChartWidth, useChartHeight), axis (useXAxisDomain, useYAxisDomain, useXAxisTicks, useYAxisTicks), and 9 scale hooks
  • feat: add createCategoricalInverse utility and inverse scale selectors

Fixed

  • fix: legend is not taking into account user assign style (by @zernonia)
  • fix: tabindex typo and fixing accessibility layer (by @zernonia)
  • fix(Treemap): align event API with Recharts and fix onMouseLeave hover state
  • fix(Treemap): correct type imports and add missing positions field
  • fix: treemap nest mode drills into wrong group due to d3 sort reorder
  • fix: re-trigger slide-in animation on nest mode navigation
  • fix: align treemap animation with recharts — slide-in from left instead of center-scale
  • fix(ReferenceDot): make fill and stroke optional in ReferenceDotShapeProps
  • fix(rootProps): widen class prop type from string to VueClassValue
  • fix: align class type interfaces to VueClassValue across all components

Changed

  • refactor: replace legacy animationDuration/animationEasing/animationBegin props with transition
  • refactor: replace className prop with native Vue class across all components
  • refactor: align Treemap with Recharts architecture — Redux store + standard Tooltip
  • refactor: extract shared classProp and VueClassValue type
  • refactor: extract duplicated scale and cell utils into shared modules

Contributors

Thank you to our contributors for this release! 🎉