When I try to use charts with many small values with large value in stacked or pie chart , both show the label of small values very small or overlapped , is there any way to show the label only for some data of chart and hide other labels
You can try specifying a custom Formatter function for RadzenValueAxis and return empty string whenever you don't want the label to render.
<RadzenChart>
<!-- other options -->
<RadzenValueAxis Formatter=@Formatter />
</RadzenChart>
@code {
string Formatter(object series)
{
var value = (double)series;
if (value > 10) return string.Empty;
return value.ToString();
}
2 Likes