You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by an...@apache.org on 2015/05/12 20:18:06 UTC

[3/3] spark git commit: [SPARK-7500] DAG visualization: move cluster labeling to dagre-d3

[SPARK-7500] DAG visualization: move cluster labeling to dagre-d3

This fixes the label bleeding issue described in the JIRA and pictured in the screenshots below. I also took the opportunity to move some code to the places that they belong more to. In particular:

(1) Drawing cluster labels is now implemented in my branch of dagre-d3 instead of in Spark
(2) All graph styling is now moved from Scala to JS

Note that these changes are related because our existing mechanism of "tacking on cluster labels" afterwards isn't flexible enough for us to fix issues like this one easily. For the other half of the changes, visit http://github.com/andrewor14/dagre-d3.

-------------------

**Before.**
<img src="https://cloud.githubusercontent.com/assets/2133137/7582769/b1423440-f845-11e4-8248-b3446a01bf79.png" width="300px"/>

-------------------

**After.**
<img src="https://cloud.githubusercontent.com/assets/2133137/7582742/74891ae6-f845-11e4-96c4-41c7b8aedbdf.png" width="400px"/>

Author: Andrew Or <an...@databricks.com>

Closes #6076 from andrewor14/dag-viz-bleed and squashes the following commits:

5858d7a [Andrew Or] Merge branch 'master' of github.com:apache/spark into dag-viz-bleed
c686dc4 [Andrew Or] Fix tooltip placement
d908c36 [Andrew Or] Add link to dagre-d3 changes (minor)
4a4fb58 [Andrew Or] Fix bleeding + move all styling to JS


Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/65697bbe
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/65697bbe
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/65697bbe

Branch: refs/heads/master
Commit: 65697bbeafe507dda066e2dc14ca5183f278dfe9
Parents: bfcaf8a
Author: Andrew Or <an...@databricks.com>
Authored: Tue May 12 11:17:59 2015 -0700
Committer: Andrew Or <an...@databricks.com>
Committed: Tue May 12 11:17:59 2015 -0700

----------------------------------------------------------------------
 .../org/apache/spark/ui/static/dagre-d3.min.js  | 14 ++--
 .../org/apache/spark/ui/static/spark-dag-viz.js | 79 ++++++++------------
 .../scala/org/apache/spark/ui/UIUtils.scala     |  2 +-
 .../spark/ui/scope/RDDOperationGraph.scala      | 40 +++-------
 4 files changed, 48 insertions(+), 87 deletions(-)
----------------------------------------------------------------------



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org