layerchart@2.0.0-next.14
Patch Changes
- fix(AreaChart|BarChar|LineChart): Use value axis (typically y) property name/accessor for tooltip label if defined as string (ex.
<AreaChart x="date" y="visitors">will usevisitorsinstead ofvalue) (#523)
<AreaChart x="date" y="visitors"> will use visitors instead of value) (#523)feat: Support passing FormatConfig (ex. { type: '...', options: { ... } }) anywhere FormatType is supported to simplify custom formatting (ex. variant) (#521)
feat: Support passing PeriodTypeCode strings for simplified date formatting and reduce imports. Example: format={PeriodType.Day} is now format="day". Also supported with config object for passing additional options (ex. format={{ type: 'day', options: { variant: 'long' } }}). Supported for all format props include Axis, Labels, Legend and Tooltip. (#521)
fix(Axis): Key using tick value instead string representation to support millisecond precision (#508)
fix(Axis): Add time duration aware tick value/format support (#508)
feat(Axis): Support multiline ticks for time intervals (#508)
feat(Axis): Support responsive tick counts via tickSpacing prop (#508)
fix(Text): Apply dominant-baseline to <textPath> instead of <text> to fix Safari. Fixes #507 (#508)
feat(Text): Support explicit word wrapping with \n character (#508)
docs: Add non-radial BarChart duration example and improve radial example (#496)
fix(BarChart): Improve handling time scale for value axis (ex. xScale for horizontal orientation) (#496)
fix(Spline): Only re-draw on data/path changes and not other context (such as width/height). Fixes #504 (#505)
docs: Rename "Dot Plot" to "Duration" and add bars example along with points (#496)
@layerstack/utils with improved metric number formatting (#449)@layerstack/utils with improved metric number formatting (71920fc)