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

Getting errors when using snapTooltip: true #43

Closed
macthestack opened this issue Oct 21, 2021 · 1 comment
Closed

Getting errors when using snapTooltip: true #43

macthestack opened this issue Oct 21, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@macthestack
Copy link

I'm getting the following error:

TypeError: Cannot read properties of undefined (reading 'valueX')
DateAxis.value
/src/.internal/charts/xy/axes/DateAxis.ts:661
  658 | let second = series.dataItems[result.index];
  659 | 
  660 | if (first && second) {
> 661 | 	let open = first.open![fieldName];
      | ^  662 | 	let close = second.close![fieldName];
  663 | 
  664 | 	if (Math.abs(value - open) > Math.abs(value - close)) {
View compiled

It's hard to reproduce consistently but it seems to happen when zooming and mutating series.data

@martynasma martynasma added bug Something isn't working in next release Implemented. Available soon. labels Oct 22, 2021
@martynasma
Copy link
Collaborator

Fixed in 5.0.0-beta.36.

[5.0.0-beta.36] - 2021-10-25

Added

Changed

  • XYSeries will now automatically set the first bullet of a data item as the series' tooltipTarget. This will make the series tooltip background to change color to the bullet's fill.

Fixed

  • Code optimizations to reduce size of core package by 10%.
  • If data was being set for a CategoryAxis not instantly but after some time, the chart was not rendered properly.
  • svgPath with A or a commands was not being rendered properly.

Full change log.

Download options.

Make sure you clear your browser cache after upgrading. And feel free to contact us again if you are still experiencing this issue.

@martynasma martynasma removed the in next release Implemented. Available soon. label Oct 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants