Merge branch 'development' of https://github.com/novus/nvd3 into development

refactor
frank shao 11 years ago
commit 23fbe55024

@ -1,6 +1,6 @@
{
"name": "nvd3",
"version": "1.1.14-beta",
"version": "1.1.15-beta",
"homepage": "http://www.nvd3.org",
"authors": [
"Bob Monteverde",
@ -18,7 +18,7 @@
],
"license": "Apache License, v2.0",
"dependencies": {
"d3": "~3.3.5"
"d3": "~3.3.13"
},
"ignore" : [
"**/.*",

@ -3231,7 +3231,11 @@ nv.models.cumulativeLineChart = function() {
if (!line.values) {
return line;
}
var v = lines.y()(line.values[idx], idx);
var indexValue = line.values[idx];
if (indexValue == null) {
return line;
}
var v = lines.y()(indexValue, idx);
//TODO: implement check below, and disable series if series loses 100% or more cause divide by 0 issue
if (v < -.95 && !noErrorCheck) {

@ -740,7 +740,11 @@ nv.models.cumulativeLineChart = function() {
if (!line.values) {
return line;
}
var v = lines.y()(line.values[idx], idx);
var indexValue = line.values[idx];
if (indexValue == null) {
return line;
}
var v = lines.y()(indexValue, idx);
//TODO: implement check below, and disable series if series loses 100% or more cause divide by 0 issue
if (v < -.95 && !noErrorCheck) {

Loading…
Cancel
Save