From bba95399f0f9a9abae1a57ab15ec0f9974d746e6 Mon Sep 17 00:00:00 2001 From: john30 Date: Sat, 5 Nov 2016 12:20:19 +0100 Subject: [PATCH] added support for bars with multiple fields in one message --- contrib/html/index.html | 27 ++++++++++++++++++++++----- 1 file changed, 22 insertions(+), 5 deletions(-) diff --git a/contrib/html/index.html b/contrib/html/index.html index 59e79172..65f12285 100644 --- a/contrib/html/index.html +++ b/contrib/html/index.html @@ -416,16 +416,33 @@ jsPlumb.ready(function() { for (var which=0; which<2; which++) { if (which>0 && !item.lastnames) continue; var setvalues = which==0?values:lastvalues; - for (var m=0; m0 ? item.lastnames : item.names; + if (!Array.isArray(names)) { + names = Array(names); + } + for (var m=0; mmaxValue) maxValue = value; + } + continue; + } else { + var field = fields?fields[item.field]:null; + if (field && field.hasOwnProperty('value')) { + value = field.value; + } } } setvalues[setvalues.length] = value;