Page 1 of 1

AxisLabel of an Y-Value with SeriesHotspot - Tool

Posted: Mon Feb 23, 2009 8:52 am
by 10549438
Hello,

I have different Gantt-Series drawn at different Y-Values in my Webchart. (Similar to the example in the "TeeChart for .NET Examples" (Welcome!\Chart styles\Standard\Gantt)) and I'm using a Series-Hotspot-Tool to show some Information on a Mouse-Over.

My Question is:
How can I get the Label-Text of the Gantts-LeftAxis, using the Parameters "sender" and "e" of the HotSpotEvent

Code: Select all

private void hotspotTool_GetHTMLMap_Mark(Steema.TeeChart.Tools.SeriesHotspot sender, Steema.TeeChart.Tools.SeriesHotspotEventArgs e)
{
}
to show the AxisLabel also in my MouseOver-Text?

Best regards.
Michael

Posted: Mon Feb 23, 2009 10:42 am
by 10050769
Hi Michael,


If you want to get the Label-Text of The Gantts-LeftAxis, I recomended next code in the hotspotTool_GetHTMLMap event:

Code: Select all

    void _Default_GetHTMLMap(Steema.TeeChart.Tools.SeriesHotspot sender, Steema.TeeChart.Tools.SeriesHotspotEventArgs e)
    {
        e.PointPolygon.Title = e.Series.YValues[e.PointPolygon.ValueIndex].ToString();        
    }
Before previous code you would have initialize the event, as for exemple Runtime:

Code: Select all

   hotSpot1.GetHTMLMap += new Steema.TeeChart.Tools.SeriesHotspotEventHandler(_Default_GetHTMLMap);

Posted: Mon Feb 23, 2009 12:20 pm
by 10549438
Hi Sandra,

Thank for the Code.
It's working fine.

Best regards.
Michael