A Julia package for generating visualizations in Vega
Getting Started Visualization Primitives Creating A Visualization From Scratch
View the Project on GitHubjohnmyleswhite/Vega.jl
Function Keywords:
x::AbstractVector y::AbstractVector y2::AbstractVector group::AbstractVector stacked::Bool = false horizontal::Bool = false normalize::Bool = false
using Vega x = [1, 2, 3, 4, 5] y = [1, 2, 3, 2, 1] barplot(x = x, y = y)
using Vega x = [1, 2, 3, 4, 5] y = [1, 2, 3, 2, 1] barplot(x = x, y = y, horizontal = true)
using Vega x = 1:20 y = rand(20) group = [round(val/10) for val in x] barplot(x = x, y = y, group = group)
colorscheme!
using Vega x = [0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9] y = [28, 43, 81, 19, 52, 24, 87, 17, 68, 49, 55, 91, 53, 87, 48, 49, 66, 27, 16, 15] g = [0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1] a = barplot(x = x, y = y, group = g, stacked = true) colorscheme!(a, palette = ("Greens", 3))
hover!
using Vega x = [0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9] y = [28, 43, 81, 19, 52, 24, 87, 17, 68, 49, 55, 91, 53, 87, 48, 49, 66, 27, 16, 15] g = [0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1] a = barplot(x = x, y = y, group = g, stacked = true, normalize = true, horizontal = true) hover!(a, opacity = 0.75)