Explorar el Código

added height in sankey widget

Piotr Labudda hace 7 años
padre
commit
51cbdbdef4
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      theme/assets/js/graph/sankey-init-widget.js

+ 1 - 1
theme/assets/js/graph/sankey-init-widget.js

@@ -309,7 +309,7 @@ function sankeyNodeLabel(i) {
 
 		htmlNode.append("rect").attr("x",0).attr("y",0).attr("width","100%").attr("height","100%").attr("fill","white")
 		width = (opts.width) ? opts.width - margin.left - margin.right : 1020
-		height = 500
+		height = (opts.height) ? opts.height : 500
 		margin = {
 			top: 10,
 			right: 10,