tableau / embedding-api-v3-guide

migration guide for moving to embedding api v3
MIT License
27 stars 9 forks source link

Precision of float values from the summary data different from the JavaScript API #28

Closed florent-guinard closed 2 years ago

florent-guinard commented 2 years ago

The precision of float values returned by the Worsksheet.getSummaryDataAsync function has changed between the Javascript API and the Embedding API.

We have a basic Worksheet embedded with both APIs and we log its summary data using the same code: const sheet = viz.workbook.activeSheet; const data = await sheet.getSummaryDataAsync(); console.log(data);

For the same data point, in the Javascript API: image in the Embedding API: image

illonage commented 2 years ago

Hi Florent - Yes, we are aware of it. Do you need this level of precision? Right now, we are not planning to address it but let us know if it is blocking issue

florent-guinard commented 2 years ago

@illonage Thanks for your feedback. The only issue we have with this change (the level of precision doesn't matter in our case) is the difference of behaviour between the Javascript and the Embedding API: if we compare the data of a Worksheet on a 2022.1 site (using the Javascript API) wiith the exact same Worksheet on a 2022.2 site (using the Embedding API) we'll have differences due to this level of precision even though the underyling data is absolutely identical. It's not a blocking issue though, we should be able to find a solution in this specific case.