[ 6 posts ]

Igor Smit

  • Username: progi2007
  • Joined: Fri Mar 06, 2009 1:51 am
  • Posts: 11
  • Offline
  • Profile

Display dataTip after rendering

Post Posted: Fri Mar 06, 2009 12:06 pm
+0-
How can I display dataTip after rendering chart? By default mouseOver.

Tripp Bridges

YUI Developer

  • Username: tripp
  • Joined: Wed Jan 07, 2009 1:54 pm
  • Posts: 435
  • GitHub: tripp
  • Gists: tripp
  • YUI Developer
  • Offline
  • Profile

Re: Display dataTip after rendering

Post Posted: Fri Mar 06, 2009 3:09 pm
+0-
By default, a dataTip message will appear when you mouseover a marker. The message can be formatted through a dataTip method.
http://developer.yahoo.com/yui/charts/#datatip

The dataTip function can either be set as a Configuration Attribute in your chart's constructor
new YAHOO.widget.LineChart( "myContainer", myDataSource,
{
xField: "month",
series: seriesDef,
dataTipFunction: YAHOO.example.myDataTipFunction
} );

or through the set method after the chart has loaded

mychart.set("dataTipFunction", YAHOO.example.myDataTipFunction);

You can listen to the chart's contentReady event to ensure that the chart has loaded before you attempt to set the function.

function loadDataTipFunction()
{
mychart.set("dataTipFunction", YAHOO.example.myDataTipFunction)
}
mychart.on("contentReady", loadDataTipFunction);

Thanks,
Tripp

Igor Smit

  • Username: progi2007
  • Joined: Fri Mar 06, 2009 1:51 am
  • Posts: 11
  • Offline
  • Profile

Re: Display dataTip after rendering

Post Posted: Mon Mar 09, 2009 3:06 am
+0-
Thank you, I will try.

Igor Smit

  • Username: progi2007
  • Joined: Fri Mar 06, 2009 1:51 am
  • Posts: 11
  • Offline
  • Profile

Re: Display dataTip after rendering

Post Posted: Tue Mar 10, 2009 1:53 am
+0-
I can not. I need as in image (dataTip) Image

Tripp Bridges

YUI Developer

  • Username: tripp
  • Joined: Wed Jan 07, 2009 1:54 pm
  • Posts: 435
  • GitHub: tripp
  • Gists: tripp
  • YUI Developer
  • Offline
  • Profile
Tags:

Re: Display dataTip after rendering

Post Posted: Tue Mar 10, 2009 9:28 am
+0-
Oh. I see. That functionality is not available in YUI Charts. If you log it as a feature request, I can address it in a future release.

Thanks,
Tripp

Igor Smit

  • Username: progi2007
  • Joined: Fri Mar 06, 2009 1:51 am
  • Posts: 11
  • Offline
  • Profile

Re: Display dataTip after rendering

Post Posted: Tue Mar 10, 2009 11:45 pm
+0-
Thank you! Of course, I would like to this.
  [ 6 posts ]
Display posts from previous:  Sort by  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum