bitovi-components / bit-c3 Goto Github PK
View Code? Open in Web Editor NEWBuild C3 charts with CanJS components!
Home Page: http://bitovi-components.github.io/bit-c3/
License: MIT License
Build C3 charts with CanJS components!
Home Page: http://bitovi-components.github.io/bit-c3/
License: MIT License
Ideally bit-c3
should work with:
I would like to be able to pass other options to this call: https://github.com/bitovi-components/bit-c3/blob/master/src/chart.js#L35.
Some example options that would be nice to be able to set are http://c3js.org/reference.html#axis-rotated and c3js/c3#188 (comment).
Not sure exactly how this would work, but it would make bit-c3 much more flexible.
For the new version of stache a bunch of errors and warnings shows up.
Appears after upgrade: can-stache 3.0.24 -> 3.14.2
.
Errors:
Warnings:
When I am developing, the chart shows up without a problem.
When I build my project and view it online, it doesn't show up at all.
I am using doneJS with canJS V 2.3
Using bit-c3 in a project that uses a version of CanJS other than 2.2.5 doesn't work. This warning is displayed: WARN: can/view/scanner.js: No custom element found for bit-c3
.
On the demo page the height
param is set to 120, but the chart is 320.
Hi guys, can someone help make this canJs 4 compatible?
can
should also be in peerDependencies
cssify
should be moved to devDependencies
See this jsbin.
When chart is removed from DOM its column/viewmodel unload function calls c3_chart_internal_fn.unload
which refers to $$.data.targets
. But $$.data
is null and this causes an exception.
The CJS example in the readme tells the user to require canjs
in two places. This should be can
:
var can = require("canjs");
--> var can = require("can");
require("canjs/view/stache/stache");
--> require("can/view/stache/stache");
node -v
v7.4.0
Marcs-MacBook-Pro:site marcgodard$ npm install bit-c3 --save
> [email protected] install /Users/marcgodard/CloudStation/Projects/YOURICO/site/node_modules/contextify
> node-gyp rebuild
CXX(target) Release/obj.target/contextify/src/contextify.o
../src/contextify.cc:131:56: warning: 'NewInstance' is deprecated [-Wdeprecated-declarations]
Local<Object> wrapper = Nan::New(constructor)->NewInstance();
^
/Users/marcgodard/.node-gyp/7.4.0/include/node/v8.h:3292:52: note: 'NewInstance' has been explicitly marked deprecated here
V8_DEPRECATED("Use maybe version", Local<Object> NewInstance() const);
^
../src/contextify.cc:150:16: error: no member named 'SetAccessCheckCallbacks' in 'v8::ObjectTemplate'
otmpl->SetAccessCheckCallbacks(GlobalPropertyNamedAccessCheck,
~~~~~ ^
../src/contextify.cc:182:51: warning: 'GetRealNamedProperty' is deprecated [-Wdeprecated-declarations]
Local<Value> rv = Nan::New(ctx->sandbox)->GetRealNamedProperty(property);
^
/Users/marcgodard/.node-gyp/7.4.0/include/node/v8.h:2949:30: note: 'GetRealNamedProperty' has been explicitly marked deprecated here
Local<Value> GetRealNamedProperty(Local<String> key));
^
../src/contextify.cc:209:38: warning: 'GetRealNamedProperty' is deprecated [-Wdeprecated-declarations]
if (!Nan::New(ctx->sandbox)->GetRealNamedProperty(property).IsEmpty() ||
^
/Users/marcgodard/.node-gyp/7.4.0/include/node/v8.h:2949:30: note: 'GetRealNamedProperty' has been explicitly marked deprecated here
Local<Value> GetRealNamedProperty(Local<String> key));
^
../src/contextify.cc:210:42: warning: 'GetRealNamedProperty' is deprecated [-Wdeprecated-declarations]
!Nan::New(ctx->proxyGlobal)->GetRealNamedProperty(property).IsEmpty()) {
^
/Users/marcgodard/.node-gyp/7.4.0/include/node/v8.h:2949:30: note: 'GetRealNamedProperty' has been explicitly marked deprecated here
Local<Value> GetRealNamedProperty(Local<String> key));
^
4 warnings and 1 error generated.
make: *** [Release/obj.target/contextify/src/contextify.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23)
gyp ERR! stack at emitTwo (events.js:106:13)
gyp ERR! stack at ChildProcess.emit (events.js:191:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Darwin 16.4.0
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/marcgodard/CloudStation/Projects/YOURICO/site/node_modules/contextify
gyp ERR! node -v v7.4.0
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok
[email protected] /Users/marcgodard/CloudStation/Projects/YOURICO/site
└── [email protected] extraneous
npm WARN [email protected] No repository field.
npm WARN [email protected] No license field.
npm ERR! Darwin 16.4.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "bit-c3" "--save"
npm ERR! node v7.4.0
npm ERR! npm v4.0.5
npm ERR! code ELIFECYCLE
npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script 'node-gyp rebuild'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the contextify package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs contextify
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls contextify
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /Users/marcgodard/CloudStation/Projects/YOURICO/site/npm-debug.log
Is there a way (in line/area/bar charts) to label the X axis something other than 1,2,3,...?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.