summaryrefslogtreecommitdiff
path: root/web-app/static/chart.js
diff options
context:
space:
mode:
Diffstat (limited to 'web-app/static/chart.js')
-rw-r--r--web-app/static/chart.js12
1 files changed, 9 insertions, 3 deletions
diff --git a/web-app/static/chart.js b/web-app/static/chart.js
index 0cfde07..f41ec5e 100644
--- a/web-app/static/chart.js
+++ b/web-app/static/chart.js
@@ -74,7 +74,9 @@ function create_chart(div_name, branch, device, distro, version, max_results, sh
color: "rgba(13,131,172,.8)",
dataPoints: skippedDataPoints,
click: function(e) {
- f(e.dataPoint.label, e.dataSeries.name);
+ if (e.dataPoint.y > 0) {
+ f(e.dataPoint.label, e.dataSeries.name);
+ }
}
},
{
@@ -84,7 +86,9 @@ function create_chart(div_name, branch, device, distro, version, max_results, sh
color: "rgba(224,72,108,.8)",
dataPoints: failureDataPoints,
click: function(e) {
- f(e.dataPoint.label, e.dataSeries.name);
+ if (e.dataPoint.y > 0) {
+ f(e.dataPoint.label, e.dataSeries.name);
+ }
}
},
{
@@ -94,7 +98,9 @@ function create_chart(div_name, branch, device, distro, version, max_results, sh
color: "rgba(159,204,64,.8)",
dataPoints: passingDataPoints,
click: function(e) {
- f(e.dataPoint.label, e.dataSeries.name);
+ if (e.dataPoint.y > 0) {
+ f(e.dataPoint.label, e.dataSeries.name);
+ }
}
}
]