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

BarChart Tooltip animation lags behind on fast value changes #624

Open
con-cis opened this issue Mar 30, 2021 · 3 comments
Open

BarChart Tooltip animation lags behind on fast value changes #624

con-cis opened this issue Mar 30, 2021 · 3 comments
Labels
enhancement New feature or request Fundamental

Comments

@con-cis
Copy link

con-cis commented Mar 30, 2021

Describe the bug
BarChart Tooltip animation lags behind on fast value changes. The data is provided with a simple provider

touchTooltipData: BarTouchTooltipData(
                tooltipBgColor: Colors.transparent,
                tooltipBottomMargin: -10,
                getTooltipItem: (
                  BarChartGroupData group,
                  int groupIndex,
                  BarChartRodData rod,
                  int rodIndex,
                ) {
                  String display;
                  if (groupIndex == 0 && riskLabel != null) {
                    display = riskLabel;
                  } else {
                    display = StringUtils.format(rod.y) + '%';
                  }
                  return BarTooltipItem(
                    display,
                    const TextStyle(
                      color: Colors.black,
                    ),
                  );
                },
 ),

Screenshots

chart_delay.mov

Versions
[✓] Flutter (Channel stable, 2.0.3, on Mac OS X 10.15.7 19H524 darwin-x64, locale de-DE)
fl_chart: ^0.20.1

@imaNNeo
Copy link
Owner

imaNNeo commented May 2, 2021

Hmm, I think we should disable the tooltip's number animation.
What do you think?

@con-cis
Copy link
Author

con-cis commented May 3, 2021

Hmm, I think we should disable the tooltip's number animation.
What do you think?

Yes, I'll try

@imaNNeo
Copy link
Owner

imaNNeo commented May 3, 2021

You should do this inside the library.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Fundamental
Projects
None yet
Development

No branches or pull requests

2 participants