-
Notifications
You must be signed in to change notification settings - Fork 11.9k
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
Time Axis: tooltipFormat does not work #8535
Comments
Works with |
Has anyone found out why this is happening? Since the workaround by @kurkle works, I assume this is because the labels array contents are not correctly correlated to the ticks. |
@robske110, @kurkle and @etimberg. The I used Try to touch one bar of the first graph due to Observe that |
@gusbemacbe you are loading data from CSV, but it is transformed to a JS array, so that part is external and does not concern Chart.js in any way. In your first chart, the
I'm not sure why you think |
I do not use Node or Reactjs. My JavaScript file is not a module. I also tried I want to translate the months names into another language. |
Expected Behavior
tooltipFormat property of options.xAxes[0].time should change the tooltip title correctly.
Current Behavior
When tooltipFormat is specified, tooltips are not displayed and the following error is displayed in console:
Error: fromMillis requires a numerical input, but received a object with value null
Possible Solution
correctly use content of labels array
Steps to Reproduce
Create a chart with a time axis and try to use tooltipFormat.
https://jsfiddle.net/0yhmsrwf/
Context
Trying to use tooltipFormat to display a detailed timestamp at the top of the tooltip
Environment
The text was updated successfully, but these errors were encountered: