Skip to content

Commit

Permalink
1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
fundon committed Mar 12, 2015
1 parent a2fa0cb commit 8ddc8fe
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 48 deletions.
52 changes: 9 additions & 43 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
nchart
======

nChart for node.js inspired by [Chart.js][].
nchart for node.js inspired by [Chart.js][].
**NOTE**: nchart currently just imports Chart.js(**v1.x**) and it's hacked for node.

## Usage

```js
var Canvas = require('canvas')
Expand All @@ -10,7 +13,7 @@ var Canvas = require('canvas')
, Chart = require('nchart')
, fs = require('fs');

Chart(ctx).Pie(
new Chart(ctx).Pie(
[
{
"value": 50
Expand All @@ -36,62 +39,25 @@ canvas.toBuffer(function (err, buf) {
fs.writeFile(__dirname + '/pie.png', buf);
});
```

## Installation

$ npm install -g nchart

## Features

* Built on [node-canvas][]
## Required!

## Charts

* [] Line chart
* [] Pie chart
* [] Doughnut chart
* [] Bar chart
* [] Radar chart
* [] Polar area chart
* [node-canvas][]

## Documentation

You can find documentation at [Chart.js Doc][]


## Thanks to

* https://github.com/visionmedia
* https://github.com/nnnick

## [Contributors](https://github.com/fundon/nchart/graphs/contributors)

## License

The MIT License (MIT)

Copyright (c) 2012 cfddream Cai [email protected]

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
'Software'), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

[MIT](LICENSE)

[Chart.js]: http://www.chartjs.org/
[Chart.js Doc]: http://www.chartjs.org/docs
[node-canvas]: https://github.com/LearnBoost/node-canvas
[node-canvas]: https://github.com/Automattic/node-canvas
2 changes: 1 addition & 1 deletion examples/pie.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ var Canvas = require('canvas')
, fs = require('fs')
, data = JSON.parse(fs.readFileSync(__dirname + '/pie.json'));

Chart(ctx).Pie(data, {
new Chart(ctx).Pie(data, {
scaleShowValues: true,
scaleFontSize: 24
});
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nchart",
"version": "1.0.0",
"version": "1.0.1",
"description": "nChart for node.js inspired by Chart.js.",
"author": "FangDun Cai <[email protected]>",
"license": "MIT",
Expand All @@ -17,8 +17,8 @@
},
"repository": "cfddream/nchart.git",
"devDependencies": {
"canvas": "1.1.6",
"mocha": "1.9.0",
"should": "3.1.3"
"canvas": "1.x",
"mocha": "2.x",
"should": "5.x"
}
}

0 comments on commit 8ddc8fe

Please sign in to comment.