mma-server/src/main/resources/com/aliyun/odps/mma/server/ui/static/dag-viz.js
/* Render the dot file as an SVG in the given container. */
Render the dot file as an SVG in the given container.
Render the dot file as an SVG in the given container .
function renderDot(dot, container) {
  var escaped_dot = dot
  .replace(/&lt;/g, "<")
  .replace(/&gt;/g, ">")
  .replace(/&quot;/g, "\"");
  var g = graphlibDot.read(escaped_dot);
  var renderer = new dagreD3.render();
  preprocessGraphLayout(g);
  renderer(container, g);
  container.selectAll("g.cluster[name^=\"Action \"]").classed("task", true);
}
function renderDot ( dot , container ) { var escaped_dot = dot . replace ( / &lt; / g , "<" ) . replace ( / &gt; / g , ">" ) . replace ( / &quot; / g , "\"" ) ; var g = graphlibDot . read ( escaped_dot ) ; var renderer = new dagreD3 . render ( ) ; preprocessGraphLayout ( g ) ; renderer ( container , g ) ; container . selectAll ( "g.cluster[name^=\"Action \"]" ) . classed ( "task" , true ) ; }
Render the dot file as an SVG in the given container.
Render the dot file as an SVG in the given container .
// Find the stage cluster and mark it for styling and post-processing