function (tag, help) { ////////////// vf-dsatable ////////////// $(tag).each(function (index, element) { if (($(element).attr('rendered') == undefined || $(element).attr('rendered') == false)) { $(element).html(''); function RenderTable(outputs, element) { $("#" + $(element).attr('id')).empty(); $("#" + $(element).attr('id')).append("
"); $("#" + $(element).attr('id') + " table.selectedIDs").append(""); $("#" + $(element).attr('id')+ " table.selectedIDs thead").append("Design ID"); for (var i in outputs.metricId) { $("#" + $(element).attr('id') + " table.selectedIDs thead").append("" + outputs.metricId[i] + ""); } $("#" + $(element).attr('id') + " table.selectedIDs").append(""); $("#" + $(element).attr('id') + " g .selected").each(function(index, element){ //global designID = $(element).attr("class").split(" ")[1]; for(var j in outputs.values) { if(outputs.values[j].design == designID) { $("#" + $(element).attr('id') + " table.selectedIDs tbody").append(""); var string = "" + outputs.values[j].design + ""; for(var k in outputs.metricId) { if( !(k == "design")) { string += "" + outputs.values[j][outputs.metricId[k]] + ""; } } $("#" + $(element).attr('id') + " table.selectedIDs tbody tr:last-child").append(string); } }; }); } } if (!((typeof window[$(element).attr('data')]) == 'undefined')) { renderPlot(window[$(element).attr('data')].dataproviders.parallelAxis(), element); $(element).attr('rendered', 'true'); } }); } /* $("table tbody tr.tablerow").hover(function(){ $("." + $(this).attr("class").split(" ")[1]).attr("stroke", "red"); }, function(){ $("." + $(this).attr("class").split(" ")[1]).attr("stroke", "#1f77b4"); }); */