Ejemplo n.º 1
0
        void ToolTipController_ToolTipOpening(object sender, ChartToolTipEventArgs e)
        {
            ToolTipData toolTipData = e.Hint as ToolTipData;
            int         colorNumber = e.Series.Points.IndexOf(e.SeriesPoint);
            Color       seriesColor = e.ChartControl.Palette[colorNumber];

            toolTipData.SeriesBrush = new SolidColorBrush(seriesColor);
        }
Ejemplo n.º 2
0
 public G8Member(List <GDP> GDPs)
 {
     this.toolTipData = new ToolTipData(GDPs, GDPs[0].Country);
     this.countryName = GDPs[0].Country;
     this.gdpIn2010   = GDPs[9].Product;
 }