Questions tagged [vega]

Vega is a visualization grammar, a declarative language for creating, saving, and sharing interactive visualization designs.

Vega Logo

With Vega, you can describe the visual appearance and interactive behavior of a visualization in a JSON format, and generate web-based views using Canvas or SVG.

More on Wikipedia: Vega and Vega-Lite visualisation grammars

Official Websites

865 questions
0
votes
1 answer

Why a simple copy past of spec from Vega editor doesn't work locally?

I have this spec in Vega Editor that work : { "$schema": "https://vega.github.io/schema/vega/v3.0.json", "width": 1, "height": 1, "padding": "auto", "data": [ { "name": "source", "values": [ {"name":…
guks88
  • 13
  • 4
0
votes
1 answer

Unable to launch vega-editor

The vega-editor allows interactive editing and viewing of rendered vega and vega-lite visualizations. https://github.com/vega/vega-editor I have installed it according to the directions on the README.md. The npm link did not work in either vega…
WestCoastProjects
  • 58,982
  • 91
  • 316
  • 560
0
votes
1 answer

How to set locale (globally) in Vega

I would like to configure the locale for a visualization in Vega. I need a German number format, which means that I need a comma (,) as decimal separator. Without any configuration in Vega, a decimal point (.) is used as separator. Here is a…
M.E.
  • 2,759
  • 3
  • 24
  • 33
0
votes
2 answers

React import json data

I draw a graph by using react vega. When i write config for the graph it works. I would like to get config in json format from an external file barChartConfig.json I try to import this file but did not work. My question is how can i import a json…
user7289227
0
votes
1 answer

is there a way to produce SVG with ipyvega?

Currently the jupyter output seems to only give a canvas element. Vega does allow SVG output but I couldn't see a way to do it from ipyvega.
JMann
  • 579
  • 4
  • 12
0
votes
0 answers

How to install export_png() for ggvis on windows? (Have to be a solution)

People have been encountering similar issues while trying to install export_png() of ggvis 1, 2, 3, 4, 5. I have followed the instalation of vega through node.js. here is my code: library(ggvis) mtcars %>% ggvis(~hp, ~mpg, fill=~factor(cyl)) %>%…
Mario GS
  • 859
  • 8
  • 22
0
votes
1 answer

Vega Visualization Custom Axis orientation

I am making the following graph of temperature over time using Vega Visualization Grammar. I am currently using area plot. X-axis - time y-axis - temperature (Starting from -40 to 80) I need the x-axis to start from 0 instead of -40. Following is…
Mihir Kavatkar
  • 111
  • 2
  • 7
0
votes
1 answer

How to build a 3rd party package in ember v2.6?

Trying to integrate vega-lite npm package into a single component for ember 2.6 .Brocolli is giving following error: The Broccoli Plugin: [object Object] failed with: Error: Cannot find module 'vega-lite'…
0
votes
1 answer

vega/ggvis control axis expansion

I have a vega chart being generated in R by ggvis (see code below). I would like to make it so that the axes cross at 0,0 so there is no blank space between the area series and the axes. Can this be done w/ ggvis? Can I do this within…
jrdnmdhl
  • 1,935
  • 18
  • 26
0
votes
1 answer

vega horizontal bar charts

The vega documentation/tutorials suggest that setting up a horizontal bar chart is easy, but I can't figure it out for the life of me. How would I go about changing a vertical bar chart, such as http://vega.github.io/vega-editor/index.html?spec=bar,…
Aaron LaBrie
  • 3
  • 1
  • 5
0
votes
1 answer

Error: Cannot find module 'd3'

I'm trying to run a node script (vg2svg), but get this error: Error: Cannot find module 'd3' at Function.Module._resolveFilename (module.js:336:15) at Function.Module._load (module.js:278:25) at Module.require (module.js:365:17) …
ohad
  • 353
  • 3
  • 12
0
votes
1 answer

Vega, is it pssible to have duplicate labels in the x axis

I am trying to replace some charts generated with Google Charts API using Vega. It is a simple bar chart with 5 columns, and I previously had the x axis labels showing the actual numbers. When I try doing this with Vega, it would merge the…
wobbily_col
  • 11,390
  • 12
  • 62
  • 86
0
votes
1 answer

Unable to plot chloreopath worldmap with Vincent in iPython

Trying to draw a shaded worldmap in Vincent (similar to county example in the Map Data Binding section here). My code doesn't throw errors, but produces a solid color map (ie- all countries are blue). I have thematic data describing each country…
Rob Hicks
  • 52
  • 5
0
votes
1 answer

Vincent - Pass a single array of objects to Data

I am attempting to create a data array in Vincent with a format similar to the one found in the Vega tutorial. ... "data": [ { "name": "table", "values": [ {"x":"A", "y":28}, {"x":"B", "y":55}, {"x":"C", "y":43}, {"x":"D",…
Andrew LaPrise
  • 3,373
  • 4
  • 32
  • 50
-1
votes
1 answer

Is it possible to put a label inside every circle in a scatter plot in vega-lite?

Is there a way to put a label inside the circle of a bubble chart, I have the following chart developed in Vega-lite. I am uploading my script too, inside the circle I want to show to the value of “Label” inside the circle. I am using the following…
1 2 3
57
58