Declarative Data Visualization
haifengl.github.io
Declarative Data Visualization
1–9 of 9 posts
Re: Declarative Data Visualization
#2Re: Declarative Data Visualization
#3Re: Declarative Data Visualization
#4Re: Declarative Data Visualization
#5From what I can tell, the main article is about being able to generate Vega from Scala.
Altair is an python package for generating Vega using Python. Their documentation also has an excellent examples gallery, if you're looking to see what an be done with Vega and similar packages.
Re: Declarative Data Visualization
#6Related since this is an example of things that can be done with Vega. From what I can tell, the main article is about being able to generate Vega from Scala. Altair is an python package for generating Vega using Python. Their documentation also has an excellent examples gallery, if you're looking to see what an be done with Vega and similar packages.
Re: Declarative Data Visualization
#7I'm curious, now: can a Scala person (this is Scala, right?) explain what the difference is between these two things?
Re: Declarative Data Visualization
#8Some of the examples pass what appears to be a JSON string to a function called `jsan`, and some use a function called `json`. I would have put this down to a typo, but there are several examples of each. I'm curious, now: can a Scala person (this is Scala, right?) explain what the difference is between these two things?
The benefit is that the type will be known to be JSArray without need for runtime casting (at least, outside the scope of the function). For comparison, `json` returns a JSObject.
I honestly haven't seen this before working with Scala, and it's defined just for the smile repository.
Re: Declarative Data Visualization
#9Some of the examples pass what appears to be a JSON string to a function called `jsan`, and some use a function called `json`. I would have put this down to a typo, but there are several examples of each. I'm curious, now: can a Scala person (this is Scala, right?) explain what the difference is between these two things?
It looks to be a custom function for parsing JSON arrays: https://github.com/haifengl/smile/blob/5bf4075b2978af68b31c7... The benefit is that the type will be known to be JSArray without need for runtime casting (at least, outside the scope of the function). For comparison, `json` returns a JSObject. I honestly haven't seen this before working with Scala, and it's defined just for the smile repository.