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
    "background-color-1":"#000",
    "background-color-2":"#ccc"
  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:

http://www.zingchart.com/docs/json-attributes-syntax/plot-series-item-objects/

 

Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.