views:

18

answers:

2

I have a chart that displays a tooltip (string) when hovered over. Is there a way to control the delay/time the tooltip is displayed to the user?

<asp:Chart runat="server" ID="Chart2" Width="340px" Height="265px">
        <!--Define Things in here-->
    </asp:Chart>

Backend:

    //define what rec is
    string tooltip = rec;
    Chart2.ToolTip = tooltip;
A: 

Sorry, but probably not.

Most tooltips are a browser feature, and display either the alt tag of an img, or the title tag of most elements. So the control of how long that tooltip displays is going to vary from browser to browser.

It's possible that the tooltip is under your control, and is an html element displayed with javascript on mouseover, or the charts and the tooltip might be in Flash or Silverlight, but if that's the case we'd need to see your code.

Andrew M
@Andrew please see above
cfarm54
A: 

I'm guessing probably not. If you need more flexibility I would recommend going with a jQuery tooltip solution.

Mike C.
@Mike I've tried qtip (jquery plugin). The problem with the tool is it renders outside the element. For example if I wrap the asp:Chart in a <a/> tag, then reference it to the plugin $('a').qtip{/*define properties*/} then it only renders a tooltip outside of the <a/>. I would like the tooltip to render in the chart itself and follow the mouse around.
cfarm54