Good ScalaJS visualization libraries?

515 views
Skip to first unread message

Chuanlong Du

unread,
May 31, 2017, 1:21:50 PM5/31/17
to Scala.js
Hi everyone,

I just came across ScalaJS and spent a few hours reading materials about it. There are lots of interesting examples but very few on visualization (charts, etc.). Is there any good ScalaJS based visualization library which are comparable to D3, HightCharts, etc.? Or do I still have to call JS visualization libraries? 

Best,
--
Ben Du

Erik Bruchez

unread,
May 31, 2017, 1:49:27 PM5/31/17
to Chuanlong Du, Scala.js
It might be hard to beat existing JavaScript visualization libraries, and maybe pointless to even attempt to do so. So you probably should use one of the existing JavaScript libraries. There is a facade for D3.js in particular, although I don't know if it is up to date:


Here is a list of facades to popular JavaScript libraries:


You can access existing JavaScript libraries without using facades, although that is tedious and you will probably end up writing some facade code as you go.

-Erik

    

--
You received this message because you are subscribed to the Google Groups "Scala.js" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scala-js+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/scala-js/81b6615c-d49d-4fa1-92ec-01b5ea9a729f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Chuanlong Du

unread,
Jun 1, 2017, 6:41:51 AM6/1/17
to Scala.js, long...@gmail.com, ebru...@orbeon.com
Thank you, Erik!


On Thursday, June 1, 2017 at 1:49:27 AM UTC+8, Erik Bruchez wrote:
It might be hard to beat existing JavaScript visualization libraries, and maybe pointless to even attempt to do so. So you probably should use one of the existing JavaScript libraries. There is a facade for D3.js in particular, although I don't know if it is up to date:


Here is a list of facades to popular JavaScript libraries:


You can access existing JavaScript libraries without using facades, although that is tedious and you will probably end up writing some facade code as you go.

-Erik

    
On Wed, May 31, 2017 at 10:21 AM, Chuanlong Du <long...@gmail.com> wrote:
Hi everyone,

I just came across ScalaJS and spent a few hours reading materials about it. There are lots of interesting examples but very few on visualization (charts, etc.). Is there any good ScalaJS based visualization library which are comparable to D3, HightCharts, etc.? Or do I still have to call JS visualization libraries? 

Best,
--
Ben Du

--
You received this message because you are subscribed to the Google Groups "Scala.js" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scala-js+u...@googlegroups.com.

Felix Dietze

unread,
Jun 3, 2017, 7:54:42 AM6/3/17
to Scala.js, long...@gmail.com, ebru...@orbeon.com
If you are interested in working with the latest D3 version 4 (https://github.com/d3/d3/blob/master/CHANGES.md),
I started to write a facade: https://github.com/fdietze/scala-js-d3v4
Feedback and contributions are very welcome. In most cases adding a missing facade method is a few lines of code.

Chuanlong Du

unread,
Oct 24, 2017, 10:50:18 PM10/24/17
to Felix Dietze, Scala.js, ebru...@orbeon.com
Hi Felix,

Good to know! I'll definitely give it a try.
--
Benjamin Du

Mathieu Leclaire

unread,
Oct 25, 2017, 6:11:50 PM10/25/17
to Scala.js
Hi,
you should also try the plotlyjs facade: https://github.com/DefinitelyScala/scala-js-plotlyjs
It is very easy to use (much more than 3Djs ;)) and offer a very large range of nice plots (potentially all the 2D ones provided by plotly actually).
I will start shortly a example repository. For now, you can have a look to this example: http://zebulon.iscpif.fr/~leclaire/plots/test.html

Enjoy
Mathieu

Chuanlong Du

unread,
Jan 3, 2018, 12:03:44 AM1/3/18
to Mathieu Leclaire, Scala.js
Hi Mathieu, 

plotly is great! I used in in Python and R before. But unfortunately it has limit on API calls. 

--
You received this message because you are subscribed to a topic in the Google Groups "Scala.js" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/scala-js/WPy19A8tbws/unsubscribe.
To unsubscribe from this group and all its topics, send an email to scala-js+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/scala-js/fe66e75b-f310-4566-9417-08b9b1b3b1fd%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages