Hi!
I'm creating a dashboard with some charts, when I requested to pie chart show your values, the category legend appears duplicated. I'd like know why occurs it?
listaObj = 6 records.
I'm creating a dashboard with some charts, when I requested to pie chart show your values, the category legend appears duplicated. I'd like know why occurs it?
listaObj = 6 records.
private void GraficoReceitaPorPlano(IList<object> listaObj) { this.grfPieReceitaAlunoPorPlano.Series.Clear(); this.grfPieReceitaAlunoPorPlano.AreaType = ChartAreaType.Pie; this.grfPieReceitaAlunoPorPlano.ShowTitle = true; this.grfPieReceitaAlunoPorPlano.Title = "Receita de Alunos Por Plano"; this.grfPieReceitaAlunoPorPlano.ChartElement.TitlePosition = TitlePosition.Top; this.grfPieReceitaAlunoPorPlano.ChartElement.TitleElement.TextAlignment = ContentAlignment.MiddleCenter; this.grfPieReceitaAlunoPorPlano.ShowLegend = true; this.grfPieReceitaAlunoPorPlano.ChartElement.LegendElement.TitleElement.Text = "Plano"; this.grfPieReceitaAlunoPorPlano.ChartElement.LegendElement.TitleElement.TextAlignment = ContentAlignment.MiddleCenter; this.grfPieReceitaAlunoPorPlano.ShowToolTip = true; PieSeries _pie = new PieSeries(); foreach (object[] _obj in listaObj) { double _valor = (double)ValidarCampoNumerico.TryDecimal(_obj[4].ToString()); PieDataPoint _point = new PieDataPoint(_valor, _obj[2].ToString()); _point.Label = _obj[2]; _pie.DataPoints.Add(_point); } //_pie.ShowLabels = true; _pie.LabelMode = PieLabelModes.Horizontal; this.grfPieReceitaAlunoPorPlano.Series.Add(_pie); }