Releases: JohnCoene/echarts4r
Releases · JohnCoene/echarts4r
Fixes
Theme fix
Facet
Fixes
- Apply mark to all series in timeline, fixes #290
- Bump ECharts.js
- Add
e_svg
family of functions to fix #319 - Replaced magrittr pipe
%>%
to R native's|>
. - Fix
e_map
when used with no data, map was not displayed - Fix
e_flip_coords
with boxplots (and other single column series) see #336 - Fix
e_add
applied to timeline, see 338
Boxes
echarts4r 0.3.3
- Added
echarts4rBox
,renderEcharts4rBox
, andecharts4rBoxOutput
to create value boxes. - Fix
e_common
theme, was no longer applied due to dynamic dependencies introduced in0.3.2
- Fix
e_flip_coords
for timeline feature, see #166 name
argument was not used ine_boxplot
, see #171- Allow customising area under the curve of density plot see #172
- Update mapbox dependency from
0.38
to1.11
- Fix country name conversion in
e_country_names
#189 - Fix legend toggle in radar charts #74
e_loess
, ande_lm
take amodel_args
argument to pass arguments to underlying model function #194- Bump to JavaScript version to
4.9.0
echarts_from_json
supports functions, see 199 (thanks to swsoyee)- Remove
e_facet
, was wrongly exported #212 - Add tests, thanks to Etienne Bacher, see #201
- Add styler, thanks to Wei Su see #211
- Removed the {d3r} import: no longer necessary.
Shiny
All changes since last CRAN release are below.
Notable Changes
-
Loads (much) much faster
-
Works amazingly with Shiny, see docs
-
Bump echarts.js to 4.8.0 and echarts-gl to 1.1.2
-
Fix
e_add
when used with timeline feature see #165. -
Bump echart.js to 4.8.0 now in english (no longer chinese.
Dynamic dependencies:
- themes
- leaflet
- mapbox
- wordcloud
- liquidfill
- world.js (underlying world map for e_geo and e_map)
- error bars (custom renderer)
This greatly improves the performances of echarts4r which now loads much faster.
- Added convenience
e_hide_grid_lines
to easily hide grid lines. e_map_register_ui
added to register a custom map in the Shiny UI, for faster serialisation.e_leaflet*
functions now correctly apply theroam
argument #147- Internals changes for dplyr >= 0.7.0
- Correct bug in boxplot thanks to Matthias in issue #163 for the fix.
- Avoid page breaks on PDF, see #159, thanks Steve.
- Warning in
e_axis_fomatter
if user uses RStudio, relates to #100 - Fixed #98 where a bug was introduced in
e_radar_opts
when the timeline component was added. bind
argument added toe_heatmap
e_scatter_3d
correctly takesbind
argument whencoords
is set tocartesian3D
(previously incorrect).- Bumped number of built-in themes to 40+.
- Added
e_remove_serie_p
to remove series from the graph. - Added
e_axis_labels
to easily place axis labels. - Added
e_resize
to dynamically resize the chart. - Added
e_map_register_p
works like a proxy but does not require a chart. - Fixed a few issues with
e_mark*
family, labels and multiple marks correctly work. - Initialisation function now take
reorder
argument to specify whether to reorder numeric values. #126 - Added
e_register_theme
to register a global theme, see #127. e_theme_custom
now accepts path to a JSON file.e_visual_map
dropsNA
s.- Added
e_axis_stagger
function to stagger x axis labels.
Bug fixes
Small release bringing many bug fixes
- Bar chart's
bind
argument has been fixed. e_tooltip_choro_formatter
tooltip formatter for choropleth maps added, thanks to Artem.- Tooltip formatters correctly identify locale on UNIX systems, thanks to Artem.
e_mark_point()
,e_mark_line()
ande_mark_area()
no longer usegrep()
, which means the serie will only be matched with the exact same name. Thanks @shrektan for the reporting and PR (#80, #81).- Multiple
e_title
now allowed. - Multiple
e_visual_map
in timelines is now fixed. - Corrected all links (or so I think).
e_sankey
fix thanks to Artem Klevtsov.- Many dependencies removed, it is now much easier to install.
Optimization
- Ability to add multiple
e_title
. draw
argument added toe_charts
, to set whether to draw the chart, see bullet below.e_draw_p
added to choose draw chart.e_inspect
to inspect the output of echarts4r.echarts_from_json
to create an echarts4r object from JSON options.e_axis
family of functions (e.g.:e_x_axis
) now accepts a column name as first argument to easily adapt the range of the axes, in a similar fashion as withe_visual_map
.e_charts
family forces data.frame conversion to avoid jsonlite bug.- Fixed bug in the
formatter
argument ofe_tooltip
where passing custom function was not working.
Timeline
Support for timeline added
e_clean
removed as it was not of use anymore.e_list
added to pas raw list of options.- Improved
e_color_range
helper. e_lm
&e_loess
now supportgroup_by
.e_scattter
scaling much more robust with new arguments. Also not takes an optionalsymbol
argument.- Jitter points with
e_scatter
e_append
adapated to work with new scatter-family of function (scaling).e_lines_gl
added.- Improved examples.
- Can now register multiple maps with
e_map_regiter
. - Error handling in
e_loess
ande_lm
to better work with groups. e_capture
to capture events not implemented.e_bands
to add confidence bands.- Added example of heatmap with geo.
- Fixed bug where the background color was not applied with
e_color
. e_scatter
size forced to numeric to avoid buggy character vector caused byapply
function.- Forces
webgl
rendering fore_globe
,e_scatter_gl
ande_flow_gl
. - Groups are now ordered in order to ensure match across series when using
timeline = TRUE
. e_theme
now also acceptsdefault
.auritus
theme added.bar.width
argument renamed tobar_width
ine_histogram
.e_map_3d
ande_map
correctly assignname
argument.- Axis and tooltip formatters helpers added
e_tooltip_item_formatter
&e_axis_formatter
, thanks to Artem Klevtsov. e_error_bar
added to plot error bars.- Ability to specify
icons
ine_legend
. e_aria
added to enable generating Accessible Rich Internet Applications.
Interactivity
Pre-release, tagged because the following release will deprecate a few functions.
e_labels
to easily add labels.- Mapbox support see
e_mapbox
. - Improved
e_scatter
. - Improved
e_toolbox
. - Fixed
e_axis
(and correspondinge_x_axis
ande_y_axis
) bugs. e_add
added for nested data.e_showtip_p
ande_hidetip_p
fixed.e_focus_adjacency_p
ande_unfocus_adjacency_p
proxies to highlight adjacent nodes (on graph/network) added.- Deprecation of texture related functions in favour of echarts4r.assets.
e_single_axis
added, works withe_scatter
.e_text_style
added, to customise global fonts.e_angle_axis
now takesserie
argument, see example.- Improved documentation of many functions.
First iteration of the graphic low-level API:
g_graphic_g
g_group_g
g_image_g
g_text_g
g_rect_g
g_circle_g
g_ring_g
g_sector_g
g_arc_g
g_polygon_g
g_polyline_g
g_line_g
g_bezier_curve_g
- Added actions that can be tied to buttons.
- Added the ability to add buttons.
- Added
e_arrange
&e_connect
to connect charts interactions and visualise them together. - Better supprot for radial, angle, and polar charts.
- Callbacks added
e_on
ande_off
. e_map_custom
added to work with custom registered maps.e_datazoom
takes atoolbox
argument to optionally not thedataZoom
toolbox element.- Much improved documentation
e_map
ande_map_3d
no longer require theserie
argument.e_mark_*
: Theserie
argument of the mark family functions (i.e.:e_mark_point
) can now take a vector and if leftNULL
the point is marked on all series.