Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
lerouxlarissa
Contributor II
Contributor II

Distribution plot: gradient box color

Has anyone tried to set the fill color of  a distribution plot box to a gradient color? 

The grey "box" (see image),  should be a gradient color, for example black on the left and white on the right.

Capture.2PNG.PNG

I have tried to do this with a json theme (see code), but was unsuccessful. I was however successful in changing the box fill to a single hex color, but would like  a gradient instead. 

Any ideas regarding this would be greatly appreciated. 

 

  "distributionPlot": {
      "box": {
        "fill": 
 {
      "type": "LinearGradient",
      "stops": [{
        "color": "red"
      }, {
        "color": "blue"
      }]
    }
      }
    }
Labels (1)
0 Replies