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

Get 'NaN' in tooltip of Timeline Series. Get 'undefined' at tooltip.y.formatter first arguments #4767

Open
cuobiezi opened this issue Oct 16, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@cuobiezi
Copy link

Description

Steps to Reproduce

  1. Set options as reproduce link
  2. Chart will display three points almost same time(about 11:00 17 Oct).
  3. Mouse over to right of those points. check the tooltip.
  4. Add toolTip.y.formatter config into options as blow code
tooltip: {
    followCursor: true,
    intersect: false,
    shared: true,
    x: {
        format: 'HH:mm dd MMM',
	formatter: undefined
    },
    y: {
	formatter: (value, { series, seriesIndex, dataPointIndex, w }) => {
	    // value is undefined when repeat step 3
            console.log(value)
	}
    }
},
  1. repeat step3, and then check console.

Expected Behavior

  1. Display correct value where step 3
  2. Console correct value where step5

Actual Behavior

  1. Display NaN where step 3
  2. Console undefined where step5

Screenshots

Reproduction Link

https://codepen.io/cuobiezi/pen/VwobjmQ

@cuobiezi cuobiezi added the bug Something isn't working label Oct 16, 2024
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

1 participant