Skip to content

Commit

Permalink
updated to use c3 0.6.7. closes issue #12
Browse files Browse the repository at this point in the history
  • Loading branch information
mrjoh3 committed Sep 6, 2018
1 parent 45ba66f commit 65dbf12
Show file tree
Hide file tree
Showing 23 changed files with 79 additions and 43 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Description: Create interactive charts with the 'C3.js' <http://c3js.org/> chart
types in 'C3.js' are available and include line, bar, scatter, and mixed geometry plots. Plot
annotations, labels and axis are highly adjustable. Interactive web based charts can be embedded
in R Markdown documents or Shiny web applications.
Version: 0.2.0
Version: 0.2.1
Authors@R: c(
person("Matt", "Johnson", email = "[email protected]",
role = c("aut", "cre"))
Expand All @@ -25,7 +25,7 @@ BugReports: https://github.com/mrjoh3/c3/issues
License: GPL (>= 3)
LazyData: TRUE
Encoding: UTF-8
RoxygenNote: 6.0.1
RoxygenNote: 6.1.0
Suggests: testthat,
RColorBrewer,
knitr,
Expand Down
4 changes: 2 additions & 2 deletions inst/htmlwidgets/c3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ dependencies:
src: htmlwidgets/lib/d3-5.4.0
script: d3.min.js
- name: c3
version: 0.6.1
src: htmlwidgets/lib/c3-0.6.1
version: 0.6.7
src: htmlwidgets/lib/c3-0.6.7
script: c3.min.js
stylesheet: c3.min.css

1 change: 1 addition & 0 deletions inst/htmlwidgets/lib/c3-0.6.7/c3.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions inst/htmlwidgets/lib/c3-0.6.7/c3.min.js

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions man/RColorBrewer.c3.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions man/c3.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions man/c3_chart_size.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions man/c3_donut.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions man/c3_gauge.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion man/c3_line.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions man/c3_pie.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion man/c3_selection.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion man/grid.c3.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions man/legend.c3.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions man/pipe.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions man/point_options.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions man/region.c3.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions man/subchart.c3.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions man/tickAxis.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 10 additions & 8 deletions man/tooltip.c3.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 12 additions & 5 deletions man/xAxis.c3.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions man/zoom.c3.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions tests/testthat/test_c3.R
Original file line number Diff line number Diff line change
Expand Up @@ -221,3 +221,17 @@ test_that('zoom settings work', {
expect_is(zm, "htmlwidget")

})


context('Tibble Compatibility')

test_that('Tibble x axis can be defined', {

d <- dplyr::as_tibble(d)

cp <- c3(d, x = 'date')

expect_is(cp, "c3")
expect_is(cp, "htmlwidget")

})

0 comments on commit 65dbf12

Please sign in to comment.