# \#vegalite

**URL:** https://discourse.julialang.org/tag/vegalite/644.md

[Latest](https://discourse.julialang.org/latest.md) · [Categories](https://discourse.julialang.org/categories.md) · [Tags](https://discourse.julialang.org/tags.md)

---

## [How to make vegalite read my topojson file?](https://discourse.julialang.org/t/how-to-make-vegalite-read-my-topojson-file/34546)

<div class="topic-metadata">

**Author:** [@Aizzaac](https://discourse.julialang.org/u/Aizzaac)\
**Replies:** 18\
**Last updated:** [March 5, 2025, 3:39pm UTC](https://discourse.julialang.org/t/how-to-make-vegalite-read-my-topojson-file/34546 "2025-03-05T15:39:15Z")

</div>

I have a topojson file located in this path: "/home/juliana/roc/Data/Topojson/disa\_ONT\_region" I want to make a choropleth map, but I do not know how to call that file into my code. I know it has to go in “values” I h…

---

## [Displaying plots alongside each other in Pluto](https://discourse.julialang.org/t/displaying-plots-alongside-each-other-in-pluto/124116)

<div class="topic-metadata">

**Author:** [@s-baumann](https://discourse.julialang.org/u/s-baumann)\
**Replies:** 4\
**Last updated:** [December 28, 2024, 11:57am UTC](https://discourse.julialang.org/t/displaying-plots-alongside-each-other-in-pluto/124116 "2024-12-28T11:57:14Z")

</div>

I have made plots in VegaLite. I want to display the plots alongside each other in a pluto notebook. The standard way to do this would be to combine the plots as below Plots.plot(plot1, plot2, layout = (2,1)) but that …

---

## [Creating a PNG-image of a VegaLite-diagram directly in memory?](https://discourse.julialang.org/t/creating-a-png-image-of-a-vegalite-diagram-directly-in-memory/104570)

<div class="topic-metadata">

**Author:** [@Miroslav-Stimac](https://discourse.julialang.org/u/Miroslav-Stimac)\
**Replies:** 1\
**Last updated:** [October 5, 2023, 8:59am UTC](https://discourse.julialang.org/t/creating-a-png-image-of-a-vegalite-diagram-directly-in-memory/104570 "2023-10-05T08:59:11Z")

</div>

Hello, I created the diagram fig with VegaLite.jl and want to send it via e-mail by using SMTPClient.jl without creating a temporary file, but using IOBuffer to do it directly in the memory. I tried this here, but it d…

---

## [How to put text on a Gantt chart (Vega-Lite)?](https://discourse.julialang.org/t/how-to-put-text-on-a-gantt-chart-vega-lite/103515)

<div class="topic-metadata">

**Author:** [@Josa9321](https://discourse.julialang.org/u/Josa9321)\
**Replies:** 1\
**Last updated:** [September 4, 2023, 5:36pm UTC](https://discourse.julialang.org/t/how-to-put-text-on-a-gantt-chart-vega-lite/103515 "2023-09-04T17:36:39Z")

</div>

Hi, This plot using Vega-Lite for Gantt charts is almost perfect for me, but I want the text of the task on the plot. Here is my code with the image generated. using DataFrames, VegaLite # Create a DataFrame df = Data…

---

## [\[ANN\] Deneb.jl](https://discourse.julialang.org/t/ann-deneb-jl/101074)

<div class="topic-metadata">

**Author:** [@brucala](https://discourse.julialang.org/u/brucala)\
**Replies:** 3\
**Last updated:** [July 7, 2023, 7:20pm UTC](https://discourse.julialang.org/t/ann-deneb-jl/101074 "2023-07-07T19:20:07Z")

</div>

I’m happy to announce Deneb.jl, a convenient Julia API for creating Vega-Lite visualizations. I began developing this package nearly two years ago, mainly as a personal project to deepen my understanding of Julia. Howev…

---

## [How to draw multiple graphs in one big graph using vegalite package?](https://discourse.julialang.org/t/how-to-draw-multiple-graphs-in-one-big-graph-using-vegalite-package/90128)

<div class="topic-metadata">

**Author:** [@akshdfyehd](https://discourse.julialang.org/u/akshdfyehd)\
**Replies:** 0\
**Last updated:** [November 11, 2022, 4:18pm UTC](https://discourse.julialang.org/t/how-to-draw-multiple-graphs-in-one-big-graph-using-vegalite-package/90128 "2022-11-11T16:18:27Z")

</div>

Hi, I got the following datasets: Im trying to produce a graph with x axis be job title, y be salary\_in\_usd and color in different experience level, something like this: I need to do it in vegalite but I didn’t fi…

---

## [How to draw three box plot for each job title in each year from 2020,2021,2022(using vegalite)?](https://discourse.julialang.org/t/how-to-draw-three-box-plot-for-each-job-title-in-each-year-from-2020-2021-2022-using-vegalite/90125)

<div class="topic-metadata">

**Author:** [@akshdfyehd](https://discourse.julialang.org/u/akshdfyehd)\
**Replies:** 0\
**Last updated:** [November 11, 2022, 3:42pm UTC](https://discourse.julialang.org/t/how-to-draw-three-box-plot-for-each-job-title-in-each-year-from-2020-2021-2022-using-vegalite/90125 "2022-11-11T15:42:32Z")

</div>

Hi, I have got this dataset: and so far I have draw this: I need to draw three box plot for each job title to represent the different work year from 2020,2021,2022(use vegalite package), can someone please give …

---

## [How to make the jitter by using vegalite package](https://discourse.julialang.org/t/how-to-make-the-jitter-by-using-vegalite-package/90123)

<div class="topic-metadata">

**Author:** [@akshdfyehd](https://discourse.julialang.org/u/akshdfyehd)\
**Replies:** 0\
**Last updated:** [November 11, 2022, 2:47pm UTC](https://discourse.julialang.org/t/how-to-make-the-jitter-by-using-vegalite-package/90123 "2022-11-11T14:47:21Z")

</div>

Hi, I got the following graph for each job title with salary in box plot: so there are some outliers here, presented as dot, I want to make some jitters like this for each job title have outliers: Is there any w…

---

## [How to draw the grouped bar plot in julia(best using Vegalite)](https://discourse.julialang.org/t/how-to-draw-the-grouped-bar-plot-in-julia-best-using-vegalite/89659)

<div class="topic-metadata">

**Author:** [@akshdfyehd](https://discourse.julialang.org/u/akshdfyehd)\
**Replies:** 7\
**Last updated:** [November 2, 2022, 6:20pm UTC](https://discourse.julialang.org/t/how-to-draw-the-grouped-bar-plot-in-julia-best-using-vegalite/89659 "2022-11-02T18:20:01Z")

</div>

Hi, I need to draw a graph which is grouped bar chart, y axis will be salary, x axis will be job title, and I want to present each job title with employment type in different colors(this contains part time, full time, fr…

---

## [How to make this plot in Julia?](https://discourse.julialang.org/t/how-to-make-this-plot-in-julia/75065)

<div class="topic-metadata">

**Author:** [@tp2750](https://discourse.julialang.org/u/tp2750)\
**Replies:** 29\
**Last updated:** [October 17, 2022, 8:15pm UTC](https://discourse.julialang.org/t/how-to-make-this-plot-in-julia/75065 "2022-10-17T20:15:54Z")

</div>

How do I make something similar to the following plot in Julia? using RCall, DataFrames, Random Random.seed!(123) d = DataFrame(name = repeat(\["A","B","C","D","E","F"\], inner=4), time=repeat(\[0,1,3,6\], outer=6), …

---

## [Vega-Lite plotting outside of data range with phantom data](https://discourse.julialang.org/t/vega-lite-plotting-outside-of-data-range-with-phantom-data/88426)

<div class="topic-metadata">

**Author:** [@gtraeger](https://discourse.julialang.org/u/gtraeger)\
**Replies:** 5\
**Last updated:** [October 8, 2022, 5:34am UTC](https://discourse.julialang.org/t/vega-lite-plotting-outside-of-data-range-with-phantom-data/88426 "2022-10-08T05:34:12Z")

</div>

I’m plotting temporal data from 1/1/2022 through 5/31/2022 by month. I’m getting bars from Jan through May which is ok. However, the plot is producing phantom data for Dec. I’ve checked six ways to Sunday and there is no…

---

## [How to change the country name and then draw the global map?](https://discourse.julialang.org/t/how-to-change-the-country-name-and-then-draw-the-global-map/88076)

<div class="topic-metadata">

**Author:** [@akshdfyehd](https://discourse.julialang.org/u/akshdfyehd)\
**Replies:** 20\
**Last updated:** [October 7, 2022, 10:50am UTC](https://discourse.julialang.org/t/how-to-change-the-country-name-and-then-draw-the-global-map/88076 "2022-10-07T10:50:32Z")

</div>

Hi, I got the dataset like following: I want to make a world map and see which country have higher mean salary, maybe represent through density or sth else, like density higher means the mean salary is higher, I tried…

---

## [Add reference lines to plot in VegaLite.jl](https://discourse.julialang.org/t/add-reference-lines-to-plot-in-vegalite-jl/80515)

<div class="topic-metadata">

**Author:** [@amrods](https://discourse.julialang.org/u/amrods)\
**Replies:** 2\
**Last updated:** [May 9, 2022, 12:02am UTC](https://discourse.julialang.org/t/add-reference-lines-to-plot-in-vegalite-jl/80515 "2022-05-09T00:02:49Z")

</div>

I’m trying to add 2 reference horizontal lines to this plot, but my attempt doesn’t extend the lines to the y-axis, which is what I want. Any suggestions? using DataFrames using VegaLite df = DataFrame(m = 1:5, ll=21:2…

---

## [Help with range plot with VegaLite.jl](https://discourse.julialang.org/t/help-with-range-plot-with-vegalite-jl/80462)

<div class="topic-metadata">

**Author:** [@amrods](https://discourse.julialang.org/u/amrods)\
**Replies:** 2\
**Last updated:** [May 4, 2022, 8:20am UTC](https://discourse.julialang.org/t/help-with-range-plot-with-vegalite-jl/80462 "2022-05-04T08:20:24Z")

</div>

I’m having trouble creating a range plot with VegaLite.jl (similar to this How to create a range plot - Datawrapper Academy, but with the ranges orientated vertically). I just need a simple line connecting ul to ll for e…

---

## [VegaLite with vscode](https://discourse.julialang.org/t/vegalite-with-vscode/76132)

<div class="topic-metadata">

**Author:** [@gtraeger](https://discourse.julialang.org/u/gtraeger)\
**Replies:** 3\
**Last updated:** [February 19, 2022, 12:48am UTC](https://discourse.julialang.org/t/vegalite-with-vscode/76132 "2022-02-19T00:48:13Z")

</div>

When I plot something with VegaLite using vscode the plot shows up as a thumbnail in a new window. The thumbnail size stays static even though I resize the plot window. Is there any way I can get the plot to resize as I …

---

## [How can I use strings containing whitespace in VegaLite?](https://discourse.julialang.org/t/how-can-i-use-strings-containing-whitespace-in-vegalite/76648)

<div class="topic-metadata">

**Author:** [@Soldalma](https://discourse.julialang.org/u/Soldalma)\
**Replies:** 2\
**Last updated:** [February 18, 2022, 2:48am UTC](https://discourse.julialang.org/t/how-can-i-use-strings-containing-whitespace-in-vegalite/76648 "2022-02-18T02:48:33Z")

</div>

I want to create a heatmap using VegaLite. That is not hard to do if the name of the column containing the numeric data is well-behaved. This chart looks good: using DataFrames, VegaLite df = DataFrame( "AA" =\> rand(…

---

## [Stacked bar graphs](https://discourse.julialang.org/t/stacked-bar-graphs/18550)

<div class="topic-metadata">

**Author:** [@svpillai](https://discourse.julialang.org/u/svpillai)\
**Replies:** 24\
**Last updated:** [February 14, 2022, 11:29am UTC](https://discourse.julialang.org/t/stacked-bar-graphs/18550 "2022-02-14T11:29:49Z")

</div>

Hello all, I’m quite new to Julia and was a bit lost on how to create Stacked Bar graphs. I’d like to have ideally 8 bars, grouped in pairs. Each of these bars would have 5 stacks that add up to a 100%- this is basically…

---

## [Two y-axes in AoG/Makie?](https://discourse.julialang.org/t/two-y-axes-in-aog-makie/73780)

<div class="topic-metadata">

**Author:** [@Nosferican](https://discourse.julialang.org/u/Nosferican)\
**Replies:** 3\
**Last updated:** [December 29, 2021, 10:46pm UTC](https://discourse.julialang.org/t/two-y-axes-in-aog-makie/73780 "2021-12-29T22:46:23Z")

</div>

How can create a plot with two y-axes using AoG / Makie? I want to have two “marks” / geometries with different y-axes. Here is an example using VegaLite.jl. plt = @vlplot( data = data0, mark …

---

## [VegaLite Line Plot Question](https://discourse.julialang.org/t/vegalite-line-plot-question/73562)

<div class="topic-metadata">

**Author:** [@dbjulia](https://discourse.julialang.org/u/dbjulia)\
**Replies:** 2\
**Last updated:** [December 24, 2021, 3:52pm UTC](https://discourse.julialang.org/t/vegalite-line-plot-question/73562 "2021-12-24T15:52:23Z")

</div>

I am trying to using VegaLite for a simple line plot. However, when I try and have the x-axis sort how the dataframe is sorted vs the default sort done Vegalite the line plot goes haywire. See below code and example can …

---

## [How to get padding between axis label and ticks with VegaLite.jl?](https://discourse.julialang.org/t/how-to-get-padding-between-axis-label-and-ticks-with-vegalite-jl/72249)

<div class="topic-metadata">

**Author:** [@Nosferican](https://discourse.julialang.org/u/Nosferican)\
**Replies:** 1\
**Last updated:** [November 29, 2021, 11:13pm UTC](https://discourse.julialang.org/t/how-to-get-padding-between-axis-label-and-ticks-with-vegalite-jl/72249 "2021-11-29T23:13:33Z")

</div>

I am having an issue with VegaLite.jl where the label is overlapping with the ticks in the y-axis. I haven’t been able to find any parameter to add some padding between the two values. CC: @davidanthoff

---

## [How to use strings to specify plot axes in VegaLite.jl?](https://discourse.julialang.org/t/how-to-use-strings-to-specify-plot-axes-in-vegalite-jl/67405)

<div class="topic-metadata">

**Author:** [@amrods](https://discourse.julialang.org/u/amrods)\
**Replies:** 2\
**Last updated:** [August 31, 2021, 7:57am UTC](https://discourse.julialang.org/t/how-to-use-strings-to-specify-plot-axes-in-vegalite-jl/67405 "2021-08-31T07:57:40Z")

</div>

How can I use strings to call columns of a DataFrame in VegaLite.jl? using DataFrames using VegaLite df = DataFrame("x" =\> 1:5, "y.α" =\> 1:5) df |\> @vlplot( :line, x = "x", y = "y.α" ) ERROR: LoadError: ArgumentEr…

---

## [Why is this @vlplot blank?](https://discourse.julialang.org/t/why-is-this-vlplot-blank/64369)

<div class="topic-metadata">

**Author:** [@dlakelan](https://discourse.julialang.org/u/dlakelan)\
**Replies:** 5\
**Last updated:** [July 11, 2021, 5:40am UTC](https://discourse.julialang.org/t/why-is-this-vlplot-blank/64369 "2021-07-11T05:40:34Z")

</div>

I use this command: DataFramesMeta.@select(@where(dftrans, .! ismissing.(:PreScore) .& .! ismissing.(:Group)), :Group,PreScore = Float64.(:PreScore)) |\> @vlplot(mark={:area, fillOpacity=.5},x={"PreScore:q",scale={domain…

---

## [Adding sliders to VegaLite plot](https://discourse.julialang.org/t/adding-sliders-to-vegalite-plot/60262)

<div class="topic-metadata">

**Author:** [@Gurs](https://discourse.julialang.org/u/Gurs)\
**Replies:** 0\
**Last updated:** [April 29, 2021, 5:02pm UTC](https://discourse.julialang.org/t/adding-sliders-to-vegalite-plot/60262 "2021-04-29T17:02:09Z")

</div>

I’m wondering is it possible to add sliders to a vegalite plot in Julia, similar to the example here. I looked around the documentation page of vegalite.jl but couldn’t find any information or examples. I tried also “tra…

---

## [VegaLite vlplot basic usage, encoding](https://discourse.julialang.org/t/vegalite-vlplot-basic-usage-encoding/57700)

<div class="topic-metadata">

**Author:** [@nsajko](https://discourse.julialang.org/u/nsajko)\
**Replies:** 1\
**Last updated:** [March 22, 2021, 7:01pm UTC](https://discourse.julialang.org/t/vegalite-vlplot-basic-usage-encoding/57700 "2021-03-22T19:01:27Z")

</div>

I’m new to both Vega Lite and VegaLite.jl, and I’m confused about exactly how is vlplot supposed to work. The VegaLite documentation seems to consist mostly of examples and lacks a more systematic approach to documentati…

---

## [How to save a plot structure](https://discourse.julialang.org/t/how-to-save-a-plot-structure/28694)

<div class="topic-metadata">

**Author:** [@HenriDeh](https://discourse.julialang.org/u/HenriDeh)\
**Replies:** 4\
**Last updated:** [September 18, 2019, 11:21pm UTC](https://discourse.julialang.org/t/how-to-save-a-plot-structure/28694 "2019-09-18T23:21:04Z")

</div>

I’d like to save a plot but not as an image file, basically I want to be able to save a Plot p, end my julia session, open a new one, load Plot p and then edit it with new series for example. I tried to use BSON like th…
