v5.11.0
Notable Additions
- Preliminary support for ARIA accessibility attributes in SVG output. Mark and guide definitions now include automatically-generated roles and labels, which can be customized using
descriptionandariaproperties. Individual mark items do not include ARIA attributes by default (which helps prevent bloat of both the scenegraph and output SVG), but these can be added usingdescriptionandariaencoding channels. - Improve generated HTML form elements for signal bindings. Deployments that use custom CSS for styling bound elements may wish to make minor adjustments.
dayofyeartime unit support for thetimeunittransform.dayofyear,week,utcdayofyear, andutcweekexpression functions.- Axis
domainCap,gridCap, andtickCapproperties.
Changelog
Changes from v5.10.1:
monorepo
- Add ARIA attribute generation documentation.
- Update eslint setup, consolidate configuration.
- Update dev dependencies.
vega
- Add
calendartest specification. - Add
overview-detail-binstest spec to test suite. - Update crossfilter test scenes to include
descriptionproperty output.
vega-encode
- Move internal tick, label utilities to vega-scale.
- Fix valid tick check calculation. (#2531)
vega-functions
- Add
dayofyear,week,utcdayofyear,utcweekexpression functions.
vega-geo
- Fix density utility size input checking bug.
vega-parser
- Add ARIA attribute generation for marks and guides via
ariaanddescriptionproperties. - Add backing scale names to axis, legend datum objects.
- Add
zindexsupport for guide config. - Add axis
domainCap,gridCap, andtickCapproperties. (Thanks @kanitw!)
vega-scale
- Add tick, label guide utilities from vega-encode.
- Add
domainCaptionutility. - Fix overflow with large domain and small
tickMinStep(#2550, thanks @rwoollen!)
vega-scenegraph
- Add ARIA attribute generation to SVG renderers:
- Parent
<g>tags for mark items include automaticroleandaria-roleDescriptionattributes. - Parent
<g>tags for axes and legends include automaticaria-labelcaptions. - Attribute generation for mark and guide definitions can be customized using the
ariaanddescriptionproperties. Ifariaisfalse, the content is hidden from the accessibility tree by settingaria-hiddenSVG attribute. Thedescriptionproperty determines thearia-labelSVG attribute. - Individual mark items do not include ARIA attributes by default, but these can be added using the encoding channels
ariaanddescription. If adescriptionis provided andaria !== false, then Vega will generate accompanyingroleandaria-roledescriptionattributes for a mark item.
- Parent
- Provide experimental
ariaRoleandariaRoleDescriptionencoding channels for individual marks, which override the defaultroleandaria-roledescriptionattributes generated by Vega. However, note that these are experimental features and so may change at a later date.
vega-schema
- Add ARIA accessibility properties to mark, guide, and encode schemas.
- Add axis
domainCap,gridCap, andtickCapproperties.
vega-time
- Add
dayofyeartime unit support and corresponding tests. - Add
dayofyear,week,utcdayofyear,utcweekutility functions. - Add export for
TIME_UNITSarray of valid time unit strings.
vega-transforms
- Update
TimeUnittransform parameter schema to enforce valid time unit strings.
vega-typings
- Add ARIA accessibility properties to mark, guide, and encode typings.
- Add
dayofyearoption toTimeUnittransform typings. - Add
zindexsupport for guide config. - Add axis
domainCap,gridCap, andtickCapproperties.
vega-view
- Improved semantic HTML for generated signal bindings to form input elements.