diff --git a/example/pie/pie_map.csv b/example/pie/pie_map.csv new file mode 100644 index 0000000..4c9f51c --- /dev/null +++ b/example/pie/pie_map.csv @@ -0,0 +1,10 @@ +50265,北京 +60555,上海 +38544,广州 +27276,深圳 +20506,西安 +26916,昆明 +17636,武汉 +977,拉萨 +10406,哈尔滨 +6695,乌鲁木齐 diff --git a/example/pie/pie_map.html b/example/pie/pie_map.html new file mode 100644 index 0000000..f408172 --- /dev/null +++ b/example/pie/pie_map.html @@ -0,0 +1,53 @@ + + + + + Pie Chart + + + + + + + + +
+ + + + + diff --git a/lib/datav.js b/lib/datav.js index 7845462..181c461 100644 --- a/lib/datav.js +++ b/lib/datav.js @@ -189,7 +189,6 @@ return function (num) { var thisColor = gotColor; var thisColorCount = colorCount; - return thisColor[num % thisolorCount]; }; }; @@ -254,9 +253,7 @@ * @param {String} url JSON文件地址 * @param {Function} callback 回调函数 */ - DataV.json = function (url, callback) { - d3.json(url, callback); - }; + DataV.json = d3.json; /** * 请求一个CSV文件,并解析