I'm having some trouble getting desaturation color mapping
I've tried to copy/paste the example from the demo's (https://blazor.syncfusion.com/documentation/treemap/color-mapping#desaturation-color-mapping ) site in a brand new Blazor App solution in Visual Studio:
@using Syncfusion.Blazor.TreeMap <SfTreeMap WeightValuePath="Count" TValue="Fruit" DataSource="Fruits" RangeColorValuePath="Count"> <TreeMapLeafItemSettings LabelPath="FruitName"> <TreeMapLeafColorMappings> <TreeMapLeafColorMapping StartRange="500" EndRange="3000" MinOpacity="0.2" MaxOpacity="0.5" Color='new string[] { "Orange"}'>TreeMapLeafColorMapping> <TreeMapLeafColorMapping StartRange="3000" EndRange="5000" MinOpacity="0.5" MaxOpacity="0.8" Color='new string[] { "Green"}'>TreeMapLeafColorMapping> TreeMapLeafColorMappings> TreeMapLeafItemSettings> SfTreeMap> @code { public class Fruit { public string FruitName { get; set; } public double Count { get; set; } }; public List<Fruit> Fruits = new List<Fruit> { new Fruit { FruitName="Apple", Count=5000 }, new Fruit { FruitName="Mango", Count=3000 }, new Fruit { FruitName="Orange", Count=2300 }, new Fruit { FruitName="Banana", Count=500 }, new Fruit { FruitName="Grape", Count=4300 }, new Fruit { FruitName="Papaya", Count=1200 }, new Fruit { FruitName="Melon", Count=4500 } }; }
But the colors doesn't seem to be as the example?
Any suggestions
Hmm, maybe it's a change to .NET 6.0 that is the issue, because when i open the sample application and change to .NET 6.0, and perform a debug it's the same?
Edit: It's not the change to .NET 6.0 - i can reproduce the "error" on another machine.