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

Custom Tooltip with custom value. #127

Open
12christiaan opened this issue Oct 17, 2022 · 1 comment
Open

Custom Tooltip with custom value. #127

12christiaan opened this issue Oct 17, 2022 · 1 comment

Comments

@12christiaan
Copy link

Hi, fist i like to say that i like the work done. it looks great.
I am looking for a customization of the ToolTip. I like to show a custom value here.
i understand that i need to do this with "segmentTooltipContent", the real question is how to put 'custom' information in the tool tip.

From the data set below, i like to add 'type': 'Service C' in the ToolTip. How to do that? How ro address that part of the data set?

e.g.
{'group': 'Team A', 'data': [{
'label': 'Action B',
'type': 'Service C',
'data': [
{'timeRange': ['2022-06-01T01:01:01.001Z', '2022-09-30T01:01:01.001Z'], 'val': 'Design'},
{'timeRange': ['2022-09-30T01:01:01.001Z', '2023-01-29T01:01:01.001Z'], 'val': 'Installation'}
etc.

@vasturiano
Copy link
Owner

@12christiaan the segmentTooltipContent gives you access to the group and label of the segment. If your additional field type is based on these two, can you just do a lookup for it and derive it from the group + label?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants