public bool OnLegendButtonExit(int index, string legendName)
 {
     if (!SeriesHelper.ContainsSerie(chart.series, SerieType.Pie))
     {
         return(false);
     }
     if (!LegendHelper.IsSerieLegend(chart.series, legendName, SerieType.Pie))
     {
         return(false);
     }
     m_IsEnterPieLegendButtom = false;
     LegendHelper.CheckDataHighlighted(chart.series, legendName, false);
     chart.RefreshChart();
     return(true);
 }
 public bool OnLegendButtonClick(int index, string legendName, bool show)
 {
     if (!SeriesHelper.ContainsSerie(chart.series, SerieType.Pie))
     {
         return(false);
     }
     if (!LegendHelper.IsSerieLegend(chart.series, legendName, SerieType.Pie))
     {
         return(false);
     }
     LegendHelper.CheckDataShow(chart.series, legendName, show);
     chart.UpdateLegendColor(legendName, show);
     chart.RefreshChart();
     return(true);
 }