don't calculate cumulative value if series overrides stack to false

This commit is contained in:
Mitsuhiro Tanda
2015-08-13 13:16:51 +09:00
parent 5aee981590
commit caccacf52b
2 changed files with 20 additions and 2 deletions

View File

@@ -58,6 +58,8 @@ function ($) {
if (scope.panel.stack) {
if (scope.panel.tooltip.value_type === 'individual') {
value = series.data[hoverIndex][1];
} else if (!series.stack) {
value = series.data[hoverIndex][1];
} else {
last_value += series.data[hoverIndex][1];
value = last_value;