Browse Source

Merge branch 'olivoil-master'

pull/246/head
Masayuki Tanaka 11 years ago
parent
commit
2da7264a1d
  1. 11
      c3.js
  2. 4
      c3.min.js
  3. 6
      component.json
  4. 2
      package.json

11
c3.js

@ -1,6 +1,8 @@
(function (window) {
'use strict';
/*global define, module, exports, require */
var c3 = {
version: "0.1.38"
};
@ -76,7 +78,7 @@
*/
c3.generate = function (config) {
var d3 = window.d3 ? window.d3 : window.require ? window.require("d3") : undefined;
var d3 = window.d3 ? window.d3 : 'undefined' !== typeof require ? require("d3") : undefined;
var c3 = { data : {}, axis: {}, legend: {} },
cache = {};
@ -4539,12 +4541,13 @@
return typeof v !== 'undefined';
}
if (typeof window.define === "function" && window.define.amd) {
window.define("c3", ["d3"], c3);
if (typeof define === "function" && define.amd) {
define("c3", ["d3"], c3);
} else if ('undefined' !== typeof exports && 'undefined' !== typeof module) {
module.exports = c3;
} else {
window.c3 = c3;
}
// TODO: module.exports
// Features:
// 1. category axis

4
c3.min.js vendored

File diff suppressed because one or more lines are too long

6
component.json

@ -2,9 +2,11 @@
"name": "c3",
"repo": "masayuki0812/c3",
"description": "A D3-based reusable chart library",
"version": "0.0.1",
"version": "0.1.40",
"keywords": [],
"dependencies": {},
"dependencies": {
"mbostock/d3": "*"
},
"development": {},
"license": "MIT",
"main": "c3.js",

2
package.json

@ -1,6 +1,6 @@
{
"name": "c3",
"version": "0.1.38",
"version": "0.1.40",
"description": "D3-based reusable chart library",
"main": "c3.js",
"scripts": {

Loading…
Cancel
Save