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

How to Customize Boxplot Tooltip for Outliers and Time Units? #182

Open
mariachi0630 opened this issue Nov 14, 2024 · 1 comment
Open

How to Customize Boxplot Tooltip for Outliers and Time Units? #182

mariachi0630 opened this issue Nov 14, 2024 · 1 comment
Assignees
Labels
answered question Further information is requested

Comments

@mariachi0630
Copy link

Hello! I am using the @sgratzl/chartjs-chart-boxplot plugin to implement a boxplot.

Questions:

  1. When hovering over an outlier in the boxplot, I would like to display both the index of the corresponding row and the value of the outlier in the tooltip. Is there a way to achieve this?
NO INDEX
  1. Is it possible to modify the summary statistics displayed when hovering over the box plot (e.g., min, max, median) to display time units (e.g., 1h 23m 06s)? If yes, could you please guide me on how to implement this?

Thank you in advance for your help!

@mariachi0630 mariachi0630 added the question Further information is requested label Nov 14, 2024
@sgratzl
Copy link
Owner

sgratzl commented Nov 16, 2024

take a look at how chart.js supports customizing the tooltip. In addition, this plugin injects additional data for outliers tooltips in the data model:

https://github.com/sgratzl/chartjs-chart-boxplot/blob/f9f20dad666f1ceac89bccffe38908fdfb9a9146/src/tooltip.ts#L3C18-L12

@sgratzl sgratzl self-assigned this Nov 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
answered question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants