JavaScript UI Libraries & Blazor Components Suite – Smart UI › Forums › Charts & Data Viz › Create a Band on Blazor.Chart › Reply To: Create a Band on Blazor.Chart
October 13, 2023 at 4:37 pm
#108973
Participant
I changed the Bands definition to ChartSeriesGroupBand (instead of ChartValueAxisBand)
Bands = new List<ChartSeriesGroupBand>()
{
new ChartSeriesGroupBand()
{
Opacity = (float)0.05,
MinValue = 10,
MaxValue = 20
}
},
The setting of the data is
seriesGroups.ElementAt(0).Bands.ElementAt(0).Opacity = (float)0.05;
seriesGroups.ElementAt(0).Bands.ElementAt(0).MinValue = (float)minN;
seriesGroups.ElementAt(0).Bands.ElementAt(0).MaxValue = (float)maxN;
This compiles successfully, but I get no visible bands