Comments (4)
hello,
sorry for the delay.
the font size in the tooltips stays the same
I am not sure how it should be done, let's keep this issue open for now
font sizes of ggplot2 text elements consistent when the plot gets resized
That point will not be possible. 'ggiraph' produce a real R graphic (R device) and fonts metrics are calculated when the plot is created by R.
from ggiraph.
Hey David, no problem and thanks for getting back to this.
I feared that it will not be possible to fix the font sizes, too bad.
For the tooltips, I assume that specifying the font sizes as em or rem and not as pt or px is the way to go? You are the expert here, but at least that's my usual approach outside of ggiraph.
from ggiraph.
The size of text (and point size) is managed by R itself. But the tooltip is managed with simple CSS independently.
Using 1rem (for example), will be understood as 1rem relative to the web page, I think you'd like to have 1rem relative to:
- the svg zoom level
- and an initial fixed size value
Is that right? I think I'm in the process of formalizing the need by trying to formulate it :)
from ggiraph.
Hm, good question :) Not sure what works best here but sometimes the tooltip text just becomes too large when decreasing the plot size.
In general I think both behaviors might be helpful: tooltip text with a fixed size or relative to the "original" text size. As the text of the plot itself shrinks, I personally would expect the same to happen for the tooltip text by default.
No time to play around with it right now but I'll give it a few more trials.
from ggiraph.
Related Issues (20)
- girafe and piping HOT 2
- Transparent background HOT 2
- ggiraph fails to install error code 1 HOT 1
- Could geom_*_interactive support trailing comma's? HOT 1
- Specifying svg_width/height changes legend pattern HOT 1
- geom_col_interactive() ignoring specified order of stacked bars (duplicate of #265) HOT 2
- y-axis alignment issue when changing fonts HOT 2
- geom_hline_interactive with coord_polar not working HOT 4
- Toolbar elements initial state HOT 2
- ggiraph is not working with R 4.4.0 for Windows HOT 7
- geom_boxplot_interactive() doesn't work. HOT 1
- Set display=none as default for automaticall created divs HOT 7
- apply default css properties to data_id elements HOT 1
- Hover effect not behaving as expected on spaghetti plots since ggiraph 0.8.9
- geom_line_interactive wrong labels with few data points
- tooltip on mobile
- Support for Crosstalk? HOT 1
- option to default to activated pan/zoom
- Quarto `#| panel: tabset` works with `ggplot2`, not with `ggiraph::girafe()` HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ggiraph.