You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
588 B
15 lines
588 B
@namespace Connected.Components
|
|
@using System.Globalization
|
|
@inherits Chart
|
|
|
|
<svg @attributes="UserAttributes" class="mud-chart-pie" width="@ChartParent?.Width" height="@ChartParent?.Height" viewBox="-1 -1 2 2" style="transform: rotate(-90deg);">
|
|
<Filters />
|
|
@foreach (var item in _paths.ToList())
|
|
{
|
|
<path @onclick="() => SelectedIndex = item.Index" class="mud-chart-serie" fill="@(ChartParent.ChartOptions.ChartPalette.GetValue(item.Index % ChartOptions.ChartPalette.Count()))" d="@item.Data"></path>
|
|
}
|
|
|
|
@ChartParent?.CustomGraphics
|
|
</svg>
|
|
<Legend Data="@_legends" />
|