March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch 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!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
125 | |
85 | |
69 | |
54 | |
45 |
User | Count |
---|---|
204 | |
105 | |
98 | |
65 | |
54 |