Vegas is a Scala API for declarative, statistical data visualizations. With Vegas you can work with data files as well as Spark DataFrames and perform filtering, transformations and aggregations as the part of the plotting specification.
Questions tagged [vegas-viz]
17 questions
4
votes
0 answers
Is there any way to render Vegas (scala DSL for Vega-lite) directly to png?
I am looking for a way to render a plot to a .png file on the local file system using Vegas. Something like
val plot = Vegas("Country Pop")
.withData(
Seq(
Map("country" -> "USA", "population" -> 314),
Map("country" -> "UK",…

LRMB33
- 53
- 3
3
votes
1 answer
Vegas (Scala/Spark/Vega) color every data point
Vegas("A scatterplot").
withDataFrame(neuronnet_activation_df).
mark(Point).
encodeX("s", Quantitative).
encodeY("d", Quantitative).
encodeColor(field="feature_0_prediction",scale=Scale(rangeNominals=List("#c41f01", "#00c610"))).
…

Alice
- 33
- 3
1
vote
1 answer
Accessing external url of vega data sets
I have embedded Vega and Vega-Lite into my Angular application, and I can display them directly on my own html pages.
Some of the examples I am adopting contain links to external data files, which I have downloaded and installed in my app with npm i…

Reem Al-Assaf
- 734
- 6
- 19
1
vote
1 answer
Importing vega-embed after installation
I have installed vega & vega-lite & vega-embed using npm and now I am following the instructions here on how to embed a graph into my own page (not display it inside vs-code as the vega-embed extension does).
I have written the following code in my…

CatarinaRuna
- 520
- 4
- 15
1
vote
1 answer
Vega-lite: Cannot resolve dual y-axis on hconcat graph
I currently have 2 graphs which are horizontally concatenated and I can select variables on the first graph and get more information on them displayed on the second. I am trying to resolve the y-axis on the second graph so that I have 2 y-axis with…

meister
- 37
- 3
1
vote
2 answers
Jupyter Notebook (Scala, kernel - Apache Toree) with Vegas, Graph not showing data
I'm using Jupyter (kernal - Apache Torre) for Analytics using Apache Spark/Scala.
For visualization, I'm trying to use use Vegas (github - https://github.com/vegas-viz/Vegas)
When i use the sample Vegas code - without using the Vegas Spark…

Karan Alang
- 869
- 2
- 10
- 35
1
vote
1 answer
Nested Spark DataFrame when calling Vegas-viz .withDataFrame
Quick abstract :
I am trying to display multiple histograms from Spark DataFrames with Vegas-viz in Scala. I created a trait to create different types of histograms, and implemented classes expending it. When I create an instance of a child class, I…

Baptiste Merliot
- 841
- 11
- 24
1
vote
1 answer
Plot multiple vegas charts in the same window
I am using vegas on IntelliJ to plot charts from Spark dataframes.
Since I am not using a notebook like Jupyter with Toree, my charts are displayed on separate windows, which is quite annoying when I have to plot 20 of them.
I would like to know if…

Baptiste Merliot
- 841
- 11
- 24
0
votes
1 answer
How do I re-position an axes for a re-positioned bar chart mark?
I need to create a visualization that contains multiple marks, namely 2 bar charts side by side. I need them to be in the same vega spec, not 2 separate vega specs.
After much research and a decent amount of trial and error, I discovered you can…

irwazr
- 77
- 1
- 9
0
votes
0 answers
Does vega-lite Having Fixed Y-axis?
I have 2 charts which might have been created using hconcat. The first spec contains only an y-axis which is going to be fixed and it will act as a locked axis for my 2nd chart. If I scroll horizontally, it should only scroll the 2nd chart and my…

Pon_Balaji_P
- 3
- 5
0
votes
0 answers
how to use regex with vega
I am new to vega lite / vega.
I'm trying to write a regex query for a java log error as following with vega tree layout.
A field 'message' contains :
[Poolthread] com.xxxx.content.core-bundle com.xxxxx.content.model.impl.RegisterTypeInternal(3179)]…

Beer Forst
- 11
- 2
0
votes
2 answers
How can I pass null as a value for aggregate field from python?
I would like to achieve this:
"$schema": "https://vega.github.io/schema/vega-lite/v4.json",
"mark": {"type": "bar", "tooltip": true},
"encoding": {
"x": {"field": "Creative Type", "type": "nominal", "aggregate": null},
"y": {"field":…

vid1505
- 43
- 3
0
votes
1 answer
Unresolved dependencies path org.vegas-viz:vegas_2.12:0.3.11
I have tried to simply include Vegas dependency version 0.3.11 to my sbt.build and the dependency seems unresolved
I am using sbt version 0.1 and scala version 2.12. Intellij 2019
I cannot figure out why, are there any other dependencies needed…
0
votes
1 answer
Emailing vega chart
Is there any way I can send vega chart in email from server side? Say from a spring boot app? I have the vega spec saved in db and I can fill up data as well from the server side, was wondering how I can use this to send out an email with the chart.…

Venugopal Madathil
- 2,031
- 3
- 34
- 44
0
votes
1 answer
VEGA Kibana - multi view chart FLATTEN Transformation
I am having a hard time figuring out how to build a multiview chart in Vega using aggregated/nested.
I believe it is related to the way I am trying to transform my data to use in Vega multi view chart. Can anyone give me a hand to understand this? …

Guid
- 123
- 2
- 17