Skip to content

Commit 6c974e3

Browse files
committed
all done :-)
1 parent 39762b5 commit 6c974e3

22 files changed

+17412
-0
lines changed

.bowerrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"directory": "inst/htmlwidgets/lib"}

R/R2C3.R

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
#' <Add Title>
2+
#'
3+
#' <Add Description>
4+
#'
5+
#' @import htmlwidgets
6+
#'
7+
#' @export
8+
R2C3 <- function(message, width = NULL, height = NULL) {
9+
10+
# forward options using x
11+
x = list(
12+
message = message
13+
)
14+
15+
# create widget
16+
htmlwidgets::createWidget(
17+
name = 'R2C3',
18+
x,
19+
width = width,
20+
height = height,
21+
package = 'R2C3'
22+
)
23+
}
24+
25+
#' Widget output function for use in Shiny
26+
#'
27+
#' @export
28+
R2C3Output <- function(outputId, width = '100%', height = '400px'){
29+
shinyWidgetOutput(outputId, 'R2C3', width, height, package = 'R2C3')
30+
}
31+
32+
#' Widget render function for use in Shiny
33+
#'
34+
#' @export
35+
renderR2C3 <- function(expr, env = parent.frame(), quoted = FALSE) {
36+
if (!quoted) { expr <- substitute(expr) } # force quoted
37+
shinyRenderWidget(expr, R2C3Output, env, quoted = TRUE)
38+
}

inst/htmlwidgets/R2C3.yaml

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
dependencies:
2+
- name: d3
3+
version: 3.5.0
4+
src: htmlwidgets/lib/d3
5+
script: d3.js
6+
- name: c3
7+
version: 0.4.9
8+
src: htmlwidgets/lib/c3
9+
script: c3.js
10+
style: c3.css

inst/htmlwidgets/lib/c3/.bower.json

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
"name": "c3",
3+
"main": [
4+
"c3.css",
5+
"c3.js"
6+
],
7+
"version": "0.4.9",
8+
"homepage": "https://github.com/masayuki0812/c3",
9+
"authors": [
10+
"Masayuki Tanaka <[email protected]>"
11+
],
12+
"description": "D3-based reusable chart library",
13+
"keywords": [
14+
"chart",
15+
"d3"
16+
],
17+
"license": "MIT",
18+
"ignore": [
19+
"**/.*",
20+
"node_modules",
21+
"bower_components",
22+
"htdocs",
23+
"spec",
24+
"src",
25+
"package.json",
26+
"component.json",
27+
"Gruntfile.*"
28+
],
29+
"dependencies": {
30+
"d3": "<=3.5.0"
31+
},
32+
"_release": "0.4.9",
33+
"_resolution": {
34+
"type": "version",
35+
"tag": "0.4.9",
36+
"commit": "76d2df973f99d8b76d20df9400cd32603f14f473"
37+
},
38+
"_source": "git://github.com/masayuki0812/c3.git",
39+
"_target": "~0.4.9",
40+
"_originalSource": "c3",
41+
"_direct": true
42+
}

inst/htmlwidgets/lib/c3/LICENSE

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2013 Masayuki Tanaka
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy of
6+
this software and associated documentation files (the "Software"), to deal in
7+
the Software without restriction, including without limitation the rights to
8+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9+
the Software, and to permit persons to whom the Software is furnished to do so,
10+
subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

inst/htmlwidgets/lib/c3/README.md

+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
c3 [![Build Status](https://travis-ci.org/masayuki0812/c3.svg?branch=master)](https://travis-ci.org/masayuki0812/c3) [![Dependency Status](https://david-dm.org/masayuki0812/c3.svg)](https://david-dm.org/masayuki0812/c3) [![devDependency Status](https://david-dm.org/masayuki0812/c3/dev-status.svg)](https://david-dm.org/masayuki0812/c3#info=devDependencies) [![license](http://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat)](https://github.com/masayuki0812/c3/blob/master/LICENSE)
2+
==
3+
4+
c3 is a D3-based reusable chart library that enables deeper integration of charts into web applications.
5+
6+
Follow the link for more information: [http://c3js.org](http://c3js.org/)
7+
8+
## Tutorial and Examples
9+
10+
+ [Getting Started](http://c3js.org/gettingstarted.html)
11+
+ [Examples](http://c3js.org/examples.html)
12+
13+
Additional samples can be found in this repository:
14+
+ [https://github.com/masayuki0812/c3/tree/master/htdocs/samples](https://github.com/masayuki0812/c3/tree/master/htdocs/samples)
15+
16+
You can run these samples as:
17+
```
18+
$ cd c3/htdocs
19+
$ python -m SimpleHTTPServer 8080
20+
```
21+
22+
## Google Group
23+
For general C3.js-related discussion, please visit our [Google Group at https://groups.google.com/forum/#!forum/c3js](https://groups.google.com/forum/#!forum/c3js).
24+
25+
## Using the issue queue
26+
The [issue queue](https://github.com/masayuki0812/c3/issues) is to be used for reporting defects and problems with C3.js, in addition to feature requests and ideas. It is **not** a catch-all support forum. **For general support enquiries, please use the [Google Group](https://groups.google.com/forum/#!forum/c3js) at https://groups.google.com/forum/#!forum/c3js.** All questions involving the interplay between C3.js and any other library (such as AngularJS) should be posted there first!
27+
28+
Before reporting an issue, please do the following:
29+
1. [Search for existing issues](https://github.com/masayuki0812/c3/issues) to ensure you're not posting a duplicate.
30+
31+
1. [Search the Google Group](https://groups.google.com/forum/#!forum/c3js) to ensure it hasn't been addressed there already.
32+
33+
1. Create a JSFiddle or Plunkr highlighting the issue. Please don't include any unnecessary dependencies so we can isolate that the issue is in fact with C3. *Please be advised that custom CSS can modify C3.js output!*
34+
35+
1. When posting the issue, please use a descriptive title and include the version of C3 (or, if cloning from Git, the commit hash — C3 is under active development and the master branch contains the latest dev commits!), along with any platform/browser/OS information that may be relevant.
36+
37+
## Pull requests
38+
Pull requests are welcome, though please post an issue first to see whether such a change is desirable.
39+
If you choose to submit a pull request, please do not bump the version number unless asked to, and please include test cases for any new features!
40+
41+
## Playground
42+
Please fork this fiddle:
43+
+ [http://jsfiddle.net/masayuki0812/7kYJu/](http://jsfiddle.net/masayuki0812/7kYJu/)
44+
45+
## Dependency
46+
+ [D3.js](https://github.com/mbostock/d3) `<=3.5.0`
47+
48+
## License
49+
MIT
50+
51+
[![Flattr this git repo](http://api.flattr.com/button/flattr-badge-large.png)](https://flattr.com/submit/auto?user_id=masayuki0812&url=https://github.com/masayuki0812/c3&title=c3&language=javascript&tags=github&category=software)

inst/htmlwidgets/lib/c3/bower.json

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"name": "c3",
3+
"main": [
4+
"c3.css",
5+
"c3.js"
6+
],
7+
"version": "0.4.9",
8+
"homepage": "https://github.com/masayuki0812/c3",
9+
"authors": [
10+
"Masayuki Tanaka <[email protected]>"
11+
],
12+
"description": "D3-based reusable chart library",
13+
"keywords": [
14+
"chart",
15+
"d3"
16+
],
17+
"license": "MIT",
18+
"ignore": [
19+
"**/.*",
20+
"node_modules",
21+
"bower_components",
22+
"htdocs",
23+
"spec",
24+
"src",
25+
"package.json",
26+
"component.json",
27+
"Gruntfile.*"
28+
],
29+
"dependencies": {
30+
"d3": "<=3.5.0"
31+
}
32+
}

0 commit comments

Comments
 (0)