-
Notifications
You must be signed in to change notification settings - Fork 28
Plot tooltip for truncated titles #4858
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
Conversation
extension/src/plots/vega/util.ts
Outdated
@@ -262,11 +262,23 @@ export const truncateVerticalTitle = ( | |||
const isEndValue = (valueType: string) => | |||
['string', 'number', 'boolean'].includes(valueType) | |||
|
|||
type SpecTitle = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This could be removed if we always showed everything in the tooltip
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice.
If you look at #4734 most of this logic gets deleted. I'll have to move the tooltip creation to the webview when I get back to it 🙏🏻.
Code Climate has analyzed commit 984aae4 and detected 0 issues on this pull request. The test coverage on the diff in this pull request is 97.0% (85% is the threshold). This pull request will bring the total coverage in the repository to 95.0%. View more on Code Climate. |
Demo
Screen.Recording.2023-10-18.at.10.15.13.AM.mov
I'm unsure whether the tooltip should contain the whole thing every time and be there on every plot or not. That would certainly make the code simpler if we removed the part of the code that checks whether or not it is truncated.