Version Packages - #270
Merged
Merged
Version Packages#270
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to master, this PR will be updated.
Releases
@chart-io/core@0.20.0
Minor Changes
904c3c2: Fixed a
<ParallelCoordinates>bug where hovering/clicking a row that a brush had faded out (viaBRUSHED_OUT_OPACITY) still triggered its tooltip/onMouseOver/onClick- on Canvas this was especially visible, since the virtual hit-test canvas always hit-tests at full opacity/a widened stroke (seerenderPolyline), so a brushed-out row could be "picked up" well beyond where it's actually visible. A brushed-out row now stays purely visual - it's still drawn faded for context, but no longer responds to any interaction. Added Storybook stories demonstrating brushing on Canvas, including with a 10,000-row dataset to exercise Canvas's progressive/batched rendering (PROGRESSIVE_RENDER_THRESHOLD) while brushing.Fixed a
<LegendOverlay>bug where picking the Legend up to drag it also resized it - the drag-modepositionStylesubstituted generic, direction-agnosticmaxWidth/maxHeightfor whatever direction-specific clamp (getLegendMaxDimensions) it was rendered with while docked, and since the Legend has no explicit size of its own (just those max values), the mismatch reflowed/clipped it the instant it was grabbed. Its on-screen size is now pinned to whatever it was at pickup for the duration of the drag, so only its position follows the pointer.Added a general mechanism for permanently excluding a datum from a chart:
chartActions.hideDataPoint/chartActions.clearHiddenData, backed bychartSelectors.data, which now excludes any hidden datum for every plot/axis/scale that reads through it - unlikechartActions.setFilter(a<ParallelCoordinates>axis brush), a hidden datum is removed outright rather than faded. This wires up the previously-stubbed "Hide data point"<ContextMenu>action, and a newuseDatumContextMenuhook lets a plot's own mark open a "datum"<ContextMenu>on left-click, alongside whatever its ownonClickprop already does (<ContextMenuOverlay>'s defaultgetItemsnow showsgetDefaultDatumItemsfor that context automatically) - right-clicking a mark is left alone, reserved for the chart's own background menu. Supported on<Scatter>,<Bar>/<GroupedBar>/<StackedBar>,<Column>/<GroupedColumn>/<StackedColumn>,<Pie>/<Donut>,<Line>/<Area>/<StackedArea>,<Radar>(hides the whole series, its only natural granularity),<RadialArea>,<Treemap>,<CirclePacking>(leaf nodes only - a branch/group node has no single real datum to hide),<WordCloud>and<Funnel>- not<ParallelCoordinates>, which already has its own, more targeted brush-based filtering. The background "Reset filters"<ContextMenu>action (now also included ingetDefaultBackgroundItems, alongside the existing<ParallelCoordinates>-specific one) clears hidden data too.@chart-io/react@0.73.0
Minor Changes
904c3c2: Fixed a
<ParallelCoordinates>bug where hovering/clicking a row that a brush had faded out (viaBRUSHED_OUT_OPACITY) still triggered its tooltip/onMouseOver/onClick- on Canvas this was especially visible, since the virtual hit-test canvas always hit-tests at full opacity/a widened stroke (seerenderPolyline), so a brushed-out row could be "picked up" well beyond where it's actually visible. A brushed-out row now stays purely visual - it's still drawn faded for context, but no longer responds to any interaction. Added Storybook stories demonstrating brushing on Canvas, including with a 10,000-row dataset to exercise Canvas's progressive/batched rendering (PROGRESSIVE_RENDER_THRESHOLD) while brushing.Fixed a
<LegendOverlay>bug where picking the Legend up to drag it also resized it - the drag-modepositionStylesubstituted generic, direction-agnosticmaxWidth/maxHeightfor whatever direction-specific clamp (getLegendMaxDimensions) it was rendered with while docked, and since the Legend has no explicit size of its own (just those max values), the mismatch reflowed/clipped it the instant it was grabbed. Its on-screen size is now pinned to whatever it was at pickup for the duration of the drag, so only its position follows the pointer.Added a general mechanism for permanently excluding a datum from a chart:
chartActions.hideDataPoint/chartActions.clearHiddenData, backed bychartSelectors.data, which now excludes any hidden datum for every plot/axis/scale that reads through it - unlikechartActions.setFilter(a<ParallelCoordinates>axis brush), a hidden datum is removed outright rather than faded. This wires up the previously-stubbed "Hide data point"<ContextMenu>action, and a newuseDatumContextMenuhook lets a plot's own mark open a "datum"<ContextMenu>on left-click, alongside whatever its ownonClickprop already does (<ContextMenuOverlay>'s defaultgetItemsnow showsgetDefaultDatumItemsfor that context automatically) - right-clicking a mark is left alone, reserved for the chart's own background menu. Supported on<Scatter>,<Bar>/<GroupedBar>/<StackedBar>,<Column>/<GroupedColumn>/<StackedColumn>,<Pie>/<Donut>,<Line>/<Area>/<StackedArea>,<Radar>(hides the whole series, its only natural granularity),<RadialArea>,<Treemap>,<CirclePacking>(leaf nodes only - a branch/group node has no single real datum to hide),<WordCloud>and<Funnel>- not<ParallelCoordinates>, which already has its own, more targeted brush-based filtering. The background "Reset filters"<ContextMenu>action (now also included ingetDefaultBackgroundItems, alongside the existing<ParallelCoordinates>-specific one) clears hidden data too.Patch Changes