我正在尝试使用离散条形图为电子邮件活动设置分析,我刚刚发现 nvd3 有一个奇怪的错误,即任何值为 1000 或更高的数据点都无法正确呈现。
这是jsfiddle
var data = [{
key: "Cumulative Return",
values: [
{"label" : "delivered","value" : "999","color" : "458ec1",},{"label" : "opened","value" : "176","color" : "65a1cb",},{"label" : "clicked","value" : "8","color" : "7fb1d4",},{"label" : "unopened","value" : "487","color" : "aacce3",},{"label" : "bounced","value" : "357","color" : "eec4cc",},{"label" : "unsubscribed","value" : "1","color" : "e39ba9",}, ]
}];
有效,但这不起作用
var data_large = [{
key: "Cumulative Return",
values: [
{"label" : "delivered","value" : "1000","color" : "458ec1",},{"label" : "opened","value" : "176","color" : "65a1cb",},{"label" : "clicked","value" : "8","color" : "7fb1d4",},{"label" : "unopened","value" : "487","color" : "aacce3",},{"label" : "bounced","value" : "357","color" : "eec4cc",},{"label" : "unsubscribed","value" : "1","color" : "e39ba9",}, ]
}];