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);
 }
示例#2
0
 protected override void OnLegendButtonClick(int index, string legendName, bool show)
 {
     LegendHelper.CheckDataShow(m_Series, legendName, show);
     UpdateLegendColor(legendName, show);
     RefreshChart();
 }