0
Ülevaatamisel

Tracker not working in pie series

Pablo López Ponce 9 aastat tagasi uuendatud 9 aastat tagasi 2
Hello there,

I have implemented a Pie Series with several pie slices and it's showing fine, but the tracker is not working.

This is on WPF. 

Tracker is working fine with other kind of series, but not on this one.

No error is showing on the console so I don't know what exactly to report.

This is my code:

PlotModel modelo = new PlotModel();
PieSeries serie = new PieSeries();
serie.InnerDiameter = 0.4;
serie.Diameter = 0.8;
modelo.Series.Add(serie);


int indice = 0;
foreach (MotivoDevolucion motivo in Datos.motivos.Values)
{
double valor = Datos.devoluciones.Values.Where(devolucion => devolucion.motivo == motivo && años[devolucion.fecha.Year] && meses[devolucion.fecha.Month]).Sum(devolucion => devolucion.cantidad);
PieSlice porcion = new PieSlice(motivo.descripcion, valor);
porcion.Fill = Datos.ObtenerOxyColor(indice);
porcion.IsExploded = false;
indice++;
serie.Slices.Add(porcion);
}
Ülevaatamisel
Are you using the latest pre-release version? I think I did something related to this recently...
I was using latest stable: Version 2014.1.546