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 setting enableTotals not working #2565

Closed
tyler-willowtree opened this issue Apr 16, 2024 · 6 comments
Closed

BarChart setting enableTotals not working #2565

tyler-willowtree opened this issue Apr 16, 2024 · 6 comments

Comments

@tyler-willowtree
Copy link

Describe/explain the bug
Using either ResponsiveBarChart or BarChart, when setting enableTotals nothing happens. IDE shows error Property enableTotals does not exist on type IntrinsicAttributes & ResponsiveBarSvgProps<BarDatum>

This is using the most recent version.

To Reproduce
Take the example you have on the website or any BarCahrt and add enableTotals={true}

Expected behavior
The example on your website is working so I expect this functionality to work as intended.

Screenshots
Screenshot 2024-04-16 at 5 43 22 PM

Desktop (please complete the following information):

  • OS: Mac Sonoma 14.4.1
  • Browser: All
  • Version: All
@plouc
Copy link
Owner

plouc commented Apr 17, 2024

That's because it hasn't been released yet, but the demo website is deployed continuously.

@2hakjoon
Copy link

2hakjoon commented Apr 28, 2024

@plouc
Could you please provide an estimate for when this feature will be released?

@tahos81
Copy link

tahos81 commented Apr 29, 2024

Looking forward to this feature @plouc

@plouc
Copy link
Owner

plouc commented Apr 29, 2024

It's been released in 0.86.0.

@plouc plouc closed this as completed Apr 29, 2024
@mountainash
Copy link

@plouc does enableTotals come with an associated formatter like labels does? I tried the obvious [eg. totals={(d) => $${d.value}}] but it doesn't seem to work.

@plouc
Copy link
Owner

plouc commented Apr 30, 2024

@mountainash, yes, it's going to use the format defined via valueFormat.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants