Page 1 of 1

Percent-Values of Stacked100 with Series-Hotpot-Tools

Posted: Fri Feb 06, 2009 12:32 pm
by 10549438
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

Posted: Fri Feb 06, 2009 4:38 pm
by yeray
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; 
        }