lineargradient(color1::String, color2::String) radialgradient(color1::String, color2::String)
#linear x0::Number = 0 #How far from left (start) first color starts y0::Number = 0 #How far from top (start) first color starts x2::Number = 0 #How far from right (end) second color starts y2::Number = 1 #How far from bottom (end) second color starts #radial x::Number = 0.5 #x% offset to center of gradient (0-left 1-right) y::Number = 0.5 #y% offset to center of gradient (0-top 1-bottom) r::Number = 0.5 #radius of gradient
x = ["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"] y = [11, 11, 15, 13, 12, 13, 10] ar = area(x, y, color = lineargradient("purple", "cyan")) smooth!(ar) xaxis!(ar, name = "Day of Week") yaxis!(ar, name = "Daily High Temperature °C")
x = ["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"] y = [11, 11, 15, 13, 12, 13, 10] ar = area(x, y, color = lineargradient("purple", "cyan", x0 = 0.4, y0 = 0.9, x2 = .5, y2 = 1)) smooth!(ar)
pp = pie(["all"], [1], color = radialgradient("red", "purple"))
pp2 = pie(["all"], [1], color = radialgradient("red", "purple", x = 0.25, y = 0.3, r = 0.4))