CN-1563 fix: 修复饼图统计数与实际色块数不一致的问题
This commit is contained in:
@@ -850,7 +850,7 @@ export default {
|
|||||||
end: maxLegend * i / 5,
|
end: maxLegend * i / 5,
|
||||||
color: this.pieColorRamp[i - 1]
|
color: this.pieColorRamp[i - 1]
|
||||||
}
|
}
|
||||||
item.count = data.filter(d => d.number >= item.start && d.number < item.end).length
|
item.count = data.filter(d => d.number >= item.start && d.number <= item.end).length
|
||||||
result.push(item)
|
result.push(item)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user