Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hi,
Just wondering if and how it is possible to set the color gradient for category within a visual rather than across the full visual.
The below example shows the gradient based all all categories but is is possible for the color gradient to be applied on each individual category.
{ "data": {"url": "data/cars.json"},
"mark": "rect",
"encoding": { "y": {"field": "Origin", "type": "nominal"},
"x": {"field": "Cylinders", "type": "ordinal"},
"color": {"aggregate": "mean", "field": "Horsepower"} },
"config": { "axis": {"grid": true, "tickBand": "extent"}
} }
Thanks in advance
Solved! Go to Solution.
Providing the solution here in case anyone comes across this question down the road.
https://community.powerbi.com/t5/Custom-Visuals-Development/Deneb-Vega-Lite-Color-Gradient-Per-Categ...
Providing the solution here in case anyone comes across this question down the road.
https://community.powerbi.com/t5/Custom-Visuals-Development/Deneb-Vega-Lite-Color-Gradient-Per-Categ...
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
143 | |
85 | |
66 | |
51 | |
45 |
User | Count |
---|---|
216 | |
89 | |
82 | |
66 | |
57 |