diff --git a/DESCRIPTION b/DESCRIPTION index 20b67a7..8476491 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,5 +1,5 @@ Package: apexcharter -Version: 0.1.1 +Version: 0.1.1.900 Title: Create Interactive Chart with the JavaScript 'ApexCharts' Library Description: Provides an 'htmlwidgets' interface to 'apexcharts.js'. 'Apexcharts' is a modern JavaScript charting library to build interactive charts and visualizations with simple API. diff --git a/NEWS.md b/NEWS.md index fae92a8..075d169 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,3 +1,11 @@ +apexcharter 0.1.2 +================== + +* Update ApexCharts to 3.8.2 +* Set parent container height to 0 by default (fix [#2](https://github.com/dreamRs/apexcharter/issues/2)). + + + apexcharter 0.1.1 ================== diff --git a/docs/LICENSE-text.html b/docs/LICENSE-text.html index 01a0b4c..363b9c5 100644 --- a/docs/LICENSE-text.html +++ b/docs/LICENSE-text.html @@ -60,7 +60,7 @@
diff --git a/docs/articles/index.html b/docs/articles/index.html index 80a80ea..93edeb2 100644 --- a/docs/articles/index.html +++ b/docs/articles/index.html @@ -60,7 +60,7 @@ diff --git a/docs/articles/labs.html b/docs/articles/labs.html index ae7025e..9d2742a 100644 --- a/docs/articles/labs.html +++ b/docs/articles/labs.html @@ -30,7 +30,7 @@ @@ -83,7 +83,7 @@ -apex(data = n_cut, type = "column", mapping = aes(x = cut, y = n)) %>%
ax_title(text = "Cut distribution")
You can set some options, for example:
+ +You can set some options, for example:
apex(data = n_cut, type = "column", mapping = aes(x = cut, y = n)) %>%
ax_title(
text = "Cut distribution",
align = "center",
style = list(fontSize = "22px")
)
Full list of parameters is available here : https://apexcharts.com/docs/options/title/
+ +Full list of parameters is available here : https://apexcharts.com/docs/options/title/
With same options than for title:
+ +With same options than for title:
apex(data = n_cut, type = "column", mapping = aes(x = cut, y = n)) %>%
ax_title(
text = "Cut distribution",
@@ -137,8 +137,8 @@
align = "center",
style = list(fontSize = "16px", color = "#BDBDBD")
)
Full list of parameters is available here : https://apexcharts.com/docs/options/subtitle/
+ +Full list of parameters is available here : https://apexcharts.com/docs/options/subtitle/
With some options:
+ +With some options:
- - + +Classic line:
- -Spline curve:
+ +Spline curve:
apex(data = economics, type = "line", mapping = aes(x = date, y = uempmed)) %>%
ax_stroke(curve = "smooth")
Steps chart:
+ +Steps chart:
- - + +Solid area color:
+ +Solid area color:
apex(data = economics, type = "area", mapping = aes(x = date, y = uempmed)) %>%
ax_fill(type = "solid", opacity = 1)
Line width:
+ +Line width:
apex(data = economics, type = "line", mapping = aes(x = date, y = uempmed)) %>%
ax_stroke(width = 1)
Dotted line
+ +Dotted line
- - + +Add points to line :
apex(data = tail(economics, 20), type = "line", mapping = aes(x = date, y = uempmed)) %>%
ax_markers(size = 6)
Add labels over points
+ +Add labels over points
- - + +vignettes/starting-with-apexcharts.Rmd
starting-with-apexcharts.Rmd
Flipping coordinates can be done by using type = "bar"
:
Flipping coordinates can be done by using type = "bar"
:
To create a dodge bar charts, use aesthetic fill
:
To create a dodge bar charts, use aesthetic fill
:
n_manufac_year <- count(mpg, manufacturer, year)
apex(data = n_manufac_year, type = "column", mapping = aes(x = manufacturer, y = n, fill = year))
For stacked bar charts, specify option stacked
in ax_chart
:
For stacked bar charts, specify option stacked
in ax_chart
:
To represent several lines, use a data.frame
in long format and the group
aesthetic:
To represent several lines, use a data.frame
in long format and the group
aesthetic:
data("economics_long")
economics_long <- economics_long %>%
group_by(variable) %>%
@@ -143,29 +143,29 @@
apex(data = economics_long, type = "line", mapping = aes(x = date, y = value01, group = variable)) %>%
ax_yaxis(decimalsInFloat = 2) # number of decimals to keep
Create area charts with type = "area"
:
Create area charts with type = "area"
:
Simple bar charts can be created with:
- -Color points according to a third variable:
+ +Color points according to a third variable:
apex(data = mtcars, type = "scatter", mapping = aes(x = wt, y = mpg, fill = cyl)) %>%
ax_xaxis(tickAmount = 5)
And change point size using z
aesthetics:
And change point size using z
aesthetics:
Simple radial charts can be created with (here we pass values directly in aes
, but you can use a data.frame
) :
Multi radial chart (more than one value):
+ +Multi radial chart (more than one value):
- - + +With a grouping variable:
+ +With a grouping variable:
- - + +NEWS.md
+