This repository has been archived by the owner on Jun 18, 2024. It is now read-only.
Created a new tooltip when click in a value to have different external links #86
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Created an option that allows you to have a new tooltip when a serie's value is clicked in which you can have external links to navigate.
To complete the URL you want to have in the tooltip, you can use two vars "$series_label" (which will return the serie's name) and "$series_extra" (which will return something else). When using "$series_extra", you can choose the type of it, for now it can be "raw" (it will return the same of its value) or "Date" (which will return a date given it in miliseconds, indicating the index in the field "Extra Series Index").
Also you can filtrate in the case you have multiple values in the series in the field "Show only serie with Index", in case you don't have mapped the values, it will be painted in black and showing and error message in screen, saying which value is missing in the original tooltip of each item. In case the values are mapped, it will be painted in the color assigned.
Use Cases
A serie has a value which is a timestamp when it was saved in a server and is the path of the file. It will format the date for you and giving back an URL which goes directly to the file to download.
In that case you can have stored a timestamp when a build was made, we can have an URL to go directly to see the details of that build (i.e. http//mycicd.mydomain.com/{{build}}/status)
This PR is referenced to issue #17