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

[Bug]: setDataTable(viewTable) causes "setValue is a function" error #805

Open
1 task
YL-09 opened this issue Dec 20, 2024 · 0 comments
Open
1 task

[Bug]: setDataTable(viewTable) causes "setValue is a function" error #805

YL-09 opened this issue Dec 20, 2024 · 0 comments
Labels

Comments

@YL-09
Copy link

YL-09 commented Dec 20, 2024

Would you like to work on a fix?

  • Check this if you would like to implement a PR, we are more than happy to help you go through the process.

Current and expected behavior

When updating from version 4.0.1 to 4.0.2, the method setDataTable(viewTable) causes an issue where the chart throws an error "setValue is not a function", the method setValue on the chartWrapper.getDataTable() object is missing. It was working in version 4.0.1 with setDataTable(dataTable). 2d91574#diff-434f94aad12e9fb6af07f08cc7e1b9a14c0bf0642f0ef026ad16ad949ff2e498R195

The issue since 4.0.2 and beyond

Reproduction

Initialize the Google Chart using googleChartWrapper.
Create a dataTable using chartWrapper.getDataTable();.
Attempt to call dataTable.setValue() method to update the chart.

react-google-charts version

4.0.1

Possible solution

googleChartWrapper.setDataTable(dataTable); on L195

No response

@YL-09 YL-09 added the bug label Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant