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

Add field tooltip to ScatterSpot that is displayed as default #135

Closed
DavidHuebner opened this issue Dec 13, 2019 · 1 comment
Closed

Add field tooltip to ScatterSpot that is displayed as default #135

DavidHuebner opened this issue Dec 13, 2019 · 1 comment
Labels
question Further information is requested

Comments

@DavidHuebner
Copy link

right now, the default tooltip when clicking on an element in a ScatterSpot is the radius as defined in the function

ScatterTooltipItem defaultScatterTooltipItem (ScatterSpot touchedSpot) { 
[...]
return ScatterTooltipItem('${touchedSpot.radius.toInt()}', textStyle, touchedSpot.radius + (touchedSpot.radius * 0.2));
}

I would find it more natural if the ScatterSpot class has an additional variable named String tooltip that is used for the tooltip and that radius is only used as a fallback if tooltip is not set.

@imaNNeo
Copy link
Owner

imaNNeo commented Dec 19, 2019

Do you want to change the text of the tooltip?
Check this #138, it may help you.

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

No branches or pull requests

2 participants