i found my question exactly here: Disable Animation in ModernUI Charts
but it´s not answered.
I´m programming a (Mvvm) Application und wanted to use Torsten Mandelkows MetroChart. It´s finally running (after many mistakes) but now the Gauge Chart is extremly slow until its final worth.
For example its needs nearly 20 seconds to reach 50%. Is there a way to reach its final worth immediatly?
Here my Snippets:
View:
<Viewbox Height="190">
<metroChart:RadialGaugeChart Background="{x:Null}" ChartTitle="Einzelteile" ChartSubTitle="" Foreground="LightGray" Height="300" Width="300" Margin="0,0,0,0" >
<metroChart:RadialGaugeChart.Series>
<metroChart:ChartSeries
DisplayMember="Title"
ItemsSource="{Binding Status}"
SeriesTitle="Status"
HorizontalAlignment="Stretch"
ValueMember="Percent"
VerticalAlignment="Stretch">
</metroChart:ChartSeries>
</metroChart:RadialGaugeChart.Series>
</metroChart:RadialGaugeChart>
</Viewbox>`
ViewModel:
...
Status c = new Status();
c.Title = "Parts";
if (RecievedArticle != null) c.Percent = RecievedArticle.CalcPercentStatus();
Status.Add(c);
...
public ObservableCollection<Status> Status { get; private set; } = new ObservableCollection<Status>();
}
public class Status
{
public string Title { get; set; }
public int Percent { get; set; }
}
`