Skip to content

Commit b2eee41

Browse files
committed
v.1.4.0
1 parent 85a00f4 commit b2eee41

23 files changed

+478
-223
lines changed

DESCRIPTION

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package: echarty
22
Title: Minimal R/Shiny Interface to JavaScript Library 'ECharts'
3-
Date: 2021-10-17
4-
Version: 0.3.2
3+
Date: 2021-10-22
4+
Version: 1.4.0
55
Authors@R: c(
66
person("Larry", "Helgason", email = "larry@helgasoft.com", role = c("aut", "cre", "cph")),
77
person("John", "Coene", email = "jcoenep@gmail.com", role = c("aut", "cph"))
@@ -20,10 +20,11 @@ Imports:
2020
magrittr,
2121
jsonlite
2222
Suggests:
23-
crosstalk,
24-
rmarkdown,
25-
knitr,
26-
shiny
23+
crosstalk,
24+
rmarkdown,
25+
knitr,
26+
shiny,
27+
testthat (>= 3.0.0)
2728
RoxygenNote: 7.1.2
2829
Roxygen: list(markdown = TRUE)
2930
URL: https://github.com/helgasoft/echarty

NAMESPACE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ export(ec.global)
99
export(ec.init)
1010
export(ec.inspect)
1111
export(ec.layout)
12+
export(ec.paxis)
1213
export(ec.plugjs)
1314
export(ec.theme)
1415
export(ecr.band)

NEWS.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# history of echarty package development
22

3+
## v.1.4.0
4+
5+
- _ec.init_: renamed 'group1' to 'ctype', add presets for parallel chart, improved presets for xAxis
6+
- _ec.paxis_ new helper for parallelAxis
7+
- _ec.clmn_ placeholders %d %s replaced with %@
8+
- added initial unit tests
9+
310
## v. 0.3.2
411

512
- _ec.init_: _js_ parameter has now 3 levels of execution

R/echarty.R

Lines changed: 267 additions & 179 deletions
Large diffs are not rendered by default.

R/examples.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@
9696
#' p <- tmp %>% ec.init(load='leaflet')
9797
#' p$x$opts$series[[1]]$name = 'quakes'
9898
#' p$x$opts$series[[1]]$symbolSize = ec.clmn(6, scale=2) # size column
99-
#' p$x$opts$tooltip = list(formatter=ec.clmn('magnitude %d',4))
99+
#' p$x$opts$tooltip = list(formatter=ec.clmn('magnitude %@', 'mag'))
100100
#' p$x$opts$legend = list(zz='')
101101
#' p
102102
#'
@@ -342,9 +342,9 @@
342342
#' df <- mtcars %>% group_by(cyl,gear) %>% summarise(yy=round(mean(mpg),2)) %>%
343343
#' mutate(low=round(yy-cyl*runif(1),2), high=round(yy+cyl*runif(1),2)) %>%
344344
#' relocate(cyl, .after = last_col()) # move group column behind first four cols
345-
#' p <- df %>% ec.init(group1='bar', load='custom') %>%
345+
#' p <- df %>% ec.init(ctype='bar', load='custom') %>%
346346
#' ecr.ebars(df, name = 'eb'
347-
#' ,tooltip = list(formatter=ec.clmn('high <b>%d</b><br>low <b>%d</b>', 4,3)))
347+
#' ,tooltip = list(formatter=ec.clmn('high <b>%@</b><br>low <b>%@</b>', 4,3)))
348348
#' p$x$opts$tooltip <- list(zz='')
349349
#' p
350350
#'

README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,15 +69,16 @@ Now you can start building [**beautiful
6969
ECharts**](https://echarts.apache.org/examples/en/index.html) (and
7070
[**more**](https://www.makeapie.com)) with R and Shiny!
7171

72-
 <br />
72+
<br />
7373
<p align="center">
74+
<a href='https://helgasoft.github.io/echarty/gallery.html#maps' target='_blank'>
7475
<img src="man/figs/ssPolarStack.png" alt="Polar Stack" width="180"/>
7576
<img src="man/figs/ssBars.gif" width="180"/>
7677
<img src="man/figs/ssThemeRiver.png" width="180"/>
7778
<img src="man/figs/ssBunny.gif" width="180"/> <br />
78-
<img src="man/figs/ssVolcano.png" width="180"/>
79+
<img src="man/figs/ssMorph.gif" width="180"/>
7980
<img src="man/figs/ssRose.png" width="180"/>
80-
<img src="man/figs/ssGeomap.png" width="180"/>
81-
<img src="man/figs/ssStackBar.png" width="180"/> <br />Made with
82-
echarty. Powered by ECharts.
81+
<img src="man/figs/ssSpeed.png" width="180"/>
82+
<img src="man/figs/ssStackBar.png" width="180"/></a>
83+
<br />Made with echarty. Powered by ECharts.
8384
</p>

man/ec.clmn.Rd

Lines changed: 9 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/ec.data.Rd

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/ec.examples.Rd

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/ec.fromJson.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)