Explorar o código

added height in sankey widget

Piotr Labudda %!s(int64=7) %!d(string=hai) anos
pai
achega
51cbdbdef4
Modificáronse 1 ficheiros con 1 adicións e 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,