Percent-Values of Stacked100 with Series-Hotpot-Tools

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Woehr.Mi
Newbie
Newbie
Posts: 38
Joined: Mon Jun 23, 2008 12:00 am

Percent-Values of Stacked100 with Series-Hotpot-Tools

Post by Woehr.Mi » Fri Feb 06, 2009 12:32 pm

Hello,

how can I get a percent-value of a Stacked100-Bar on a Mouse-Over-Event with the Series-HotSpot-Tool?

When I do a Mouse-Over, I get the total-Value of the PointPolygon, but not the Percent-Value.

The HotSpot-Tools Style is:

Code: Select all

myHotSpotTool.Style = MarksStyles.Percent;
Best regards
Michael

Yeray
Site Admin
Site Admin
Posts: 9614
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Post by Yeray » Fri Feb 06, 2009 4:38 pm

Hi Michael,

What TeeChart version are you using? Here with TeeChart v3.5.3317.17532 for Visual Studio 2008 the following code seems to work fine:

Code: Select all

        private Steema.TeeChart.Tools.SeriesHotspot myHotSpotTool;
        private Steema.TeeChart.Chart ch1;

        protected void Page_Load(object sender, EventArgs e)
        {
            ch1 = WebChart1.Chart;            

            ch1.Series.Add(new Steema.TeeChart.Styles.Bar());
            ch1.Series.Add(new Steema.TeeChart.Styles.Bar());

            ch1[0].FillSampleValues(5);
            ch1[1].FillSampleValues(5);

            (ch1[0] as Steema.TeeChart.Styles.Bar).MultiBar = Steema.TeeChart.Styles.MultiBars.Stacked100;

            myHotSpotTool = new Steema.TeeChart.Tools.SeriesHotspot(ch1);
            
            myHotSpotTool.Style = MarksStyles.Percent; 
        }
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply