spark-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kay Ousterhout <>
Subject Re: Integrating D3 with Spark
Date Sun, 12 Apr 2015 16:36:45 GMT
Hi Pradyumn,

Take a look at this pull request, which does something similar:

You can put JavaScript in <script> tags in Scala. That code takes a nice approach of
putting most of the JavaScript in a new file, and then just calling into it from the HTML
generated by the Scala files.


> On Apr 11, 2015, at 4:54 PM, shroffpradyumn <> wrote:
> I'm working on adding a data-graph to the Spark jobs page (rendered by
> stagePage.scala) to help users analyze the different job phases visually.
> I've already made a mockup using "dummy data" and D3.js but I'm having some
> difficulties integrating my JavaScript code with the Scala code of Spark.
> Essentially, I'm not sure on how I can access the validTasks variable in
> stagePage.scala from within my Javascript code such that I can use it along
> with D3.js to render the data-graph.
> Any help would be greatly appreciated!
> --
> View this message in context:
> Sent from the Apache Spark Developers List mailing list archive at
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message