-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Horizontal Bar Chart With Axis] Enable multiple legend selection #33484
base: master
Are you sure you want to change the base?
Conversation
📊 Bundle size report✅ No changes found |
Pull request demo site: URL |
@@ -54,6 +54,7 @@ export interface IHorizontalBarChartWithAxisState extends IBasestate { | |||
callOutAccessibilityData?: IAccessibilityProps; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🕵🏾♀️ visual regressions to review in the fluentuiv8 Visual Regression Report
Callout 6 screenshots
Image Name | Diff(in Pixels) | Image Type |
---|---|---|
Callout.Right bottom edge.chromium.png | 3005 | Changed |
Callout.Bottom Right Edge RTL.chromium.png | 1593 | Changed |
Callout.Bottom auto edge.chromium.png | 2309 | Changed |
Callout.No callout width specified.chromium.png | 2319 | Changed |
Callout.Left center.chromium.png | 2616 | Changed |
Callout.No beak.chromium.png | 2306 | Changed |
react-charting-AreaChart 1 screenshots
Image Name | Diff(in Pixels) | Image Type |
---|---|---|
react-charting-AreaChart.Custom Accessibility.chromium.png | 11 | Changed |
react-charting-LineChart 1 screenshots
Image Name | Diff(in Pixels) | Image Type |
---|---|---|
react-charting-LineChart.Gaps.chromium.png | 1 | Changed |
403da6d
to
5d4b991
Compare
if (this._isLegendSelected()) { | ||
if (this._isSpecificLegendTitleSelected(currentLegend?.title!)) { | ||
this.setState({ | ||
isLegendSelected: false, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -780,11 +760,61 @@ export class HorizontalBarChartWithAxisBase extends React.Component< | |||
focusZonePropsInHoverCard={this.props.focusZonePropsForLegendsInHoverCard} | |||
overflowText={this.props.legendsOverflowText} | |||
{...this.props.legendProps} | |||
canSelectMultipleLegends={this.props.legendProps?.canSelectMultipleLegends} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this.state.isLegendSelected === false || | ||
(this.state.isLegendSelected && this.state.selectedLegendTitle === point.legend) | ||
) { | ||
if (!this._isLegendSelected() || (this._isLegendSelected() && this._isSpecificLegendTitleSelected(point.legend!))) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shouldHighlight = this.state.selectedLegendTitle === point.legend; | ||
if (this._isLegendHovered() || this._isLegendSelected()) { | ||
shouldHighlight = | ||
this._isSpecificLegendTitleSelected(point.legend!) || this._isSpecificLegendSelected(point.legend!); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if (this.state.isLegendHovered || this.state.isLegendSelected) { | ||
shouldHighlight = this.state.selectedLegendTitle === point.legend; | ||
if (this._isLegendHovered() || this._isLegendSelected()) { | ||
shouldHighlight = this._isSpecificLegendTitleSelected(point.legend!); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and here?
Change file is missing |
[Horizontal Bar Chart With Axis] Enable multiple legend selection