ggiraph 0.9.5
CRAN release: 2026-02-17
Feature
- New functions
girafe_class_add(),girafe_class_remove()andgirafe_class_toggle()allow programmatic manipulation of CSS classes on girafe SVG elements from Shiny. Elements are targeted bydata_id,key_idortheme_id(#321). -
opts_hover()andopts_selection()gain a newlinkedparameter. Whenlinked = TRUE, hover and selection states are shared between geometry elements (data-id) and legend/guide elements (key-id): hovering or clicking a legend key highlights or selects the corresponding geometries, and vice versa (#330).
Changes
- Mouse events replaced by Pointer Events for touch device support. Hover and tooltips now work on mobile via tap; the lasso selection tool is disabled on touch devices (#300).
ggiraph 0.9.4
CRAN release: 2026-02-04
- toolbar gains new button “fullscreen”.
- internals: lasso local replace d3-lasso and ggiraph is using the latest version of d3.js.
ggiraph 0.9.3
CRAN release: 2026-01-19
Feature
- options passed to
girafe()are now merged with defaults fromset_girafe_defaults()instead of replacing them entirely. This allows setting global styles while overriding specific parameters per plot (#328).
Issues
- tooltip position is now reset to (0,0) when it disappears, fixing potential layout issues in flexdashboard and similar containers. (#323)
- single quotes in attribute values (e.g. “Côte d’Ivoire”) are now automatically escaped instead of raising an error (#329).
- fix “Unknown or uninitialised column:
subgroup” warning when usinggeom_segment_interactive()orgeom_path_interactive()withcoord_polar()(#344).
ggiraph 0.9.2
CRAN release: 2025-10-07
Feature
- add interactive version of
ggbeeswarm::geom_quasirandom, seegeom_quasirandom_interactive(). - add
default_onparameter toopts_zoom()to automatically activate pan/zoom mode when plot is rendered. - improve
opts_toolbar()documentation and examples to better demonstrate thehiddenparameter for customizing which toolbar buttons are displayed. - add examples with correct management of fonts (using
register_liberationsans()). - add
check_fonts_registeredandcheck_fonts_dependenciesarguments togirafe()to validate that fonts used in plots are properly registered and available in HTML dependencies.
Issues
- fix custom tooltip for
zoom_offstate in toolbar not being applied correctly. - fix
geom_ribbon_interactive()hover behavior so all ribbon parts (upper, lower, fill) with samedata_idreact together. - improve
geom_line_interactive()andgeom_path_interactive()with mismatched lengths of ids message when data have NA.
internals
- refresh the process that bundle the javascript file thanks to package ‘packer’.
- id is now defined with an simple internal function copied from
shinyWidgets::genId
changes
-
font_family_exists()was a duplicated function from ‘gdtools’, as ‘gdtools’ is now imported it makes no sense to keep the duplicate. Usegdtools::font_family_exists()instead ofggiraph::font_family_exists().
ggiraph 0.9.1
CRAN release: 2025-09-16
Issues
- adapt codes for ggplot2 4.0.0. There are lot of changes in ggplot2 4.0.0 and we hope we did not miss anything…
- fix regexpr pattern used in
facet_wrap_interactive()that was causing issues when there were more than 9 levels.
ggiraph 0.8.13
CRAN release: 2025-03-28
Issues
- Use png from the system via pkg-config, thanks to Tomas Kalibera:
This patch switches to using png from the system, when available via ‘pkg-config’ or otherwise using hard-coded library dependencies. It makes the package work with png from ‘Rtools42-45’. Behavior with previous versions of R is not affected, as this uses the ‘.ucrt’ version of Makevars. Using libraries from the system/Rtools when available is required by the CRAN repository policy. Also, it silences a warning […] about using non-allowed external symbols.
ggiraph 0.8.12
CRAN release: 2025-01-08
Issues
- enable build in Alpine linux, thanks to Sebastian Meyer.
-
geom_line_interactive()now correctly assigns data_id and tooltip values
Changes
- defunct
ggiraph(),ggiraphOutput()andrenderggiraph().
ggiraph 0.8.10
CRAN release: 2024-05-17
Changes
-
girafeOutput()argumentheightnow defaults to NULL. Setheightto “500px” to recover previous disposition.
ggiraph 0.8.9
CRAN release: 2024-02-24
ggiraph 0.8.8
CRAN release: 2023-12-09
Issues
- Fix issue with interactive points when shapes with lines are used (#252).
- correct
Rf_error("... (%S)", note);toRf_error("... (%s)", note);
ggiraph 0.8.7
CRAN release: 2023-03-17
Changes
- deprecation of
ggiraph(),ggiraphOutput()andrenderggiraph().
ggiraph 0.8.6
CRAN release: 2023-01-22
features
- Function
girafe()gains new argumentdependenciesthat pass additional widget HTML dependencies tohtmlwidgets::createWidget().
ggiraph 0.8.4
CRAN release: 2022-11-15
Enhancement
- Added tooltips argument to opts_toolbar for internationalization purposes
- Added hidden argument to opts_toolbar for hiding buttons/button groups
- Added zoom by rectangle feature and zoom related improvements
- New feature: hover nearest element on mouse movement
- Improved javascript performance (mouse event handling)
- Added interactive parameters for outlier points in geom_boxplot_interactive
- Added accessibility elements to the SVG output (title, desc, role)
- Added opts_selection_inv for inverted selection effect
- Added
set_girafe_defaults(),girafe_defaults()andinit_girafe_defaults()to set some default girafe options automatically. Also in R Markdown, svg default width and height are set to knitr chunk optionsfig.widthandfig.height.
Issues
- fix: issue with incorrect font used on png export
- fix: issue with broken interactivity on discrete guides
- fix: issue with geom_segment_interactive and polar coords
- fix: set fill/stroke color to svg elements even if opacity is zero.
- fix: hover styles should take priority over selection styles.
- doc: updated documentation links
- test: updated some tests to check for required packages
- test: updated github actions
Changes
- Update internals for ‘ggplot2’ version
3.4.0. - Now
facet_wrap_interactive()orfacet_grid_interactive()need to be used to let the facets be interactives (see alsolabeller_interactive()).
ggiraph 0.8.2
CRAN release: 2022-02-22
Issues
- fix linetype when line size is less than 1 (#216).
- fix a length-1 issue in inst/tinytest/test-fonts.R
ggiraph 0.8.0
CRAN release: 2021-12-08
Enhancement
- Updated DSVG device version to 14
- Added support for clipping paths, masks, gradients and patterns
- Implemented new version of internal DSVG device
- Refactored cpp code, to smaller files per context
- Added tests for tinytest & improved coverage
- New geom functions:
geom_violin_interactive,geom_label_repel_interactive,geom_text_repel_interactive,geom_contour_filled_interactive,geom_hex_interactive,geom_spoke_interactive,geom_curve_interactive,geom_count_interactive,geom_bin_2d_interactive,geom_density_2d_filled_interactive. - New grob functions:
interactive_curve_grob. - New scale functions:
scale_alpha_binned_interactive. - Added
outputArgsargument torenderGirafe, for controlling svg dimensions in rmarkdown - Demote to warning the error case of setting svg attributes because of mismatched id’s.
- Added support for custom interactive parameters via
extra_interactive_paramsargument - Miscellaneous refactorings & improvements to internal code
ggiraph 0.7.10
CRAN release: 2021-05-19
ggiraph 0.7.9
CRAN release: 2021-05-12
Enhancement
- New function
geom_dotplot_interactive. - New function
labeller_interactiveto make strip labels interactive.
Changes
- Improved tooltip positioning and added ‘placement’ parameter
- Added ‘tooltip_fill’ interactive attribute
- move font management from gdtools to systemfonts, also libpng is now required as gdtools/cairo is not used anymore. It comes also with functions
validated_fonts()and alsomatch_family()andfont_family_exists()that have been copied from package gdtools. - Updated some geometries from latest ggplot2
ggiraph 0.7.1
ggiraph 0.7.0
CRAN release: 2019-10-31
Enhancement
- refactoring of internals
- new function
girafe_css()to define individual css properties per type of elements - ability to add interactivity to panel as usual but also theme and scales now
- Upgrade geoms to ggplot2 v3.2.0 (thanks for this huge work kindly made by Panagiotis Skintzos)
ggiraph 0.6.2
Enhancement
- tooltip will always be displayed inside the SVG area (for small devices)
- Upgrade geoms to ggplot2 v3.2.0 (thanks for this huge work kindly made by Panagiotis Skintzos)
Bug fixes
- Handle html entities in tooltip
- fix some differences of rendering between ggplot2 pure graphs and girafe output (#125)
ggiraph 0.5.0
CRAN release: 2018-09-27
Changes
- the package offers now new functions
girafe()andgirafe_options()to be used instead of functionggiraph(). It is more convenient to use when customization is needed.
ggiraph 0.4.0
CRAN release: 2017-06-24
ggiraph 0.3.3
CRAN release: 2017-03-24
ggiraph 0.3.2
CRAN release: 2016-11-04
ggiraph 0.3.1
CRAN release: 2016-07-01