-
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 |
...react-charting/src/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.tsx
Show resolved
Hide resolved
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.
...react-charting/src/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.tsx
Show resolved
Hide resolved
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