Can I set a gradient background on my bars?

You will also see there are 3 different ways to apply gradients.

  1. Defining the background color attribute with two colors. A space will separate the two values in the string.
    backgroundColor: "#ff0000 #e01484"
  2. Explicitly defining two background colors with the backgroundColor1 and backgroundColor2 attributes
  3. Defining a string list of colors to be used as the gradient and a gradient stop attribute to determine the percentage of bleed for each color.
    gradientColors:"red blue green",
    gradientStops: "0.3 0.6 0.9"

All documentation referenced here:


Have more questions? Submit a request


Please sign in to leave a comment.