Skip to content
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

CRT-373 Animate the pie/donut highlight labels #1927

Merged
merged 1 commit into from
Jun 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1426,6 +1426,7 @@ export class DonutSeries extends PolarSeries<DonutNodeDatum, DonutSeriesProperti

seriesLabelFadeInAnimation(this, 'callout', animationManager, this.calloutLabelSelection);
seriesLabelFadeInAnimation(this, 'sector', animationManager, this.labelSelection);
seriesLabelFadeInAnimation(this, 'highlight', animationManager, this.highlightLabelSelection);
seriesLabelFadeInAnimation(this, 'inner', animationManager, this.innerLabelsSelection);

this.previousRadiusScale.range = this.radiusScale.range;
Expand Down Expand Up @@ -1464,6 +1465,7 @@ export class DonutSeries extends PolarSeries<DonutNodeDatum, DonutSeriesProperti

seriesLabelFadeInAnimation(this, 'callout', this.ctx.animationManager, this.calloutLabelSelection);
seriesLabelFadeInAnimation(this, 'sector', this.ctx.animationManager, this.labelSelection);
seriesLabelFadeInAnimation(this, 'highlight', this.ctx.animationManager, this.highlightLabelSelection);
seriesLabelFadeInAnimation(this, 'inner', this.ctx.animationManager, this.innerLabelsSelection);

this.previousRadiusScale.range = this.radiusScale.range;
Expand All @@ -1484,6 +1486,7 @@ export class DonutSeries extends PolarSeries<DonutNodeDatum, DonutSeriesProperti

seriesLabelFadeOutAnimation(this, 'callout', this.ctx.animationManager, this.calloutLabelSelection);
seriesLabelFadeOutAnimation(this, 'sector', this.ctx.animationManager, this.labelSelection);
seriesLabelFadeOutAnimation(this, 'highlight', this.ctx.animationManager, this.highlightLabelSelection);
seriesLabelFadeOutAnimation(this, 'inner', this.ctx.animationManager, this.innerLabelsSelection);

this.previousRadiusScale.range = this.radiusScale.range;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1320,6 +1320,7 @@ export class PieSeries extends PolarSeries<PieNodeDatum, PieSeriesProperties, Se

seriesLabelFadeInAnimation(this, 'callout', animationManager, this.calloutLabelSelection);
seriesLabelFadeInAnimation(this, 'sector', animationManager, this.labelSelection);
seriesLabelFadeInAnimation(this, 'highlight', animationManager, this.highlightLabelSelection);

this.previousRadiusScale.range = this.radiusScale.range;
}
Expand Down Expand Up @@ -1356,6 +1357,7 @@ export class PieSeries extends PolarSeries<PieNodeDatum, PieSeriesProperties, Se

seriesLabelFadeInAnimation(this, 'callout', this.ctx.animationManager, this.calloutLabelSelection);
seriesLabelFadeInAnimation(this, 'sector', this.ctx.animationManager, this.labelSelection);
seriesLabelFadeInAnimation(this, 'highlight', this.ctx.animationManager, this.highlightLabelSelection);

this.previousRadiusScale.range = this.radiusScale.range;
}
Expand All @@ -1374,6 +1376,7 @@ export class PieSeries extends PolarSeries<PieNodeDatum, PieSeriesProperties, Se

seriesLabelFadeOutAnimation(this, 'callout', this.ctx.animationManager, this.calloutLabelSelection);
seriesLabelFadeOutAnimation(this, 'sector', this.ctx.animationManager, this.labelSelection);
seriesLabelFadeOutAnimation(this, 'highlight', this.ctx.animationManager, this.highlightLabelSelection);

this.previousRadiusScale.range = this.radiusScale.range;
}
Expand Down
Loading