diff --git a/Readme.md b/Readme.md index a4305c7..b4d6ed1 100644 --- a/Readme.md +++ b/Readme.md @@ -26,8 +26,8 @@ Chart(ctx).Pie( } ] , { - scaleShowValues: true, - scaleFontSize: 24 + scaleShowValues: true + , scaleFontSize: 24 } ); @@ -75,22 +75,22 @@ The MIT License (MIT) Copyright (c) 2012 cfddream Cai cfddream@gmail.com 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 +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 +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 +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. diff --git a/examples/doughnut.json b/examples/doughnut.json index fa74c72..6c9b20e 100644 --- a/examples/doughnut.json +++ b/examples/doughnut.json @@ -5,11 +5,11 @@ }, { "value": 50, - "color": "#E2EAE9" + "color": "#46BFBD" }, { "value": 100, - "color": "#D4CCC5" + "color": "#FDB45C" }, { "value": 40, diff --git a/examples/pie.js b/examples/pie.js index f9661fc..f43ebb4 100644 --- a/examples/pie.js +++ b/examples/pie.js @@ -1,5 +1,5 @@ var Canvas = require('canvas') - , canvas = new Canvas(800, 800) + , canvas = new Canvas(900, 900) , ctx = canvas.getContext('2d') , Chart = require('../') , fs = require('fs') diff --git a/examples/pie.json b/examples/pie.json index fa74c72..d6b40d0 100644 --- a/examples/pie.json +++ b/examples/pie.json @@ -1,22 +1,14 @@ [ { "value": 30, - "color":"#F7464A" + "color":"#F38630" }, { "value": 50, - "color": "#E2EAE9" + "color": "#E0E4CC" }, { "value": 100, - "color": "#D4CCC5" - }, - { - "value": 40, - "color": "#949FB1" - }, - { - "value": 120, - "color": "#4D5360" + "color": "#69D2E7" } ] diff --git a/lib/doughnut.js b/lib/doughnut.js index 2f7fb57..fb0c2f6 100644 --- a/lib/doughnut.js +++ b/lib/doughnut.js @@ -51,7 +51,7 @@ proto.draw = function () { , segmentShowStroke = cfg.segmentShowStroke , segmentStrokeWidth = cfg.segmentStrokeWidth , segmentStrokeColor = cfg.segmentStrokeColor - , cumulativeAngle = 0 + , cumulativeAngle = - PI / 2 , segmentAngle = 0 , i = 0 , d; diff --git a/lib/pie.js b/lib/pie.js index 9fb39b4..c21aa45 100644 --- a/lib/pie.js +++ b/lib/pie.js @@ -47,7 +47,7 @@ proto.draw = function () { , segmentShowStroke = cfg.segmentShowStroke , segmentStrokeWidth = cfg.segmentStrokeWidth , segmentStrokeColor = cfg.segmentStrokeColor - , cumulativeAngle = 0 + , cumulativeAngle = - PI / 2 , segmentAngle = 0 , i = 0 , d; diff --git a/package.json b/package.json index 4589c9f..a7b5cf5 100644 --- a/package.json +++ b/package.json @@ -1,8 +1,8 @@ { "name": "nchart", - "version": "0.1.1", + "version": "0.1.2", "description": "nChart for node.js inspired by Chart.js.", - "author": "cfddream@gmail.com", + "author": "FangDun Cai ", "license": "MIT", "readmeFilename": "Readme.md", "keywords": [