View Full Version : Render functions for tooltip and legend on pie chart

6 Sep 2010, 2:07 PM
hello. I'm trying to define a tooltip and legend renderer function for a pie chart and am having no luck. I've tried calling setLegendRenderer with a renderer function and get nothing. No call to the function either. I've tried setting legendRenderer, legendFn, rendererFunction properties, all of which don't work. All I really need to do is display a total in the currency format on both the tooltip and the legend. Anybody have any ideas?

6 Sep 2010, 10:41 PM
tipRenderer and legendRenderer are config options; they need to be set in the config object and can't be set afterwards.
setTipRenderer and setLegendRenderer are methods that can be used after the chart is rendered (but you might need to refresh the chart - I don't know).

7 Sep 2010, 1:20 PM
tipRenderer works but I can't get legendRenderer to do anything for me. Setting them both in config object. Any ideas on why that may be. Using ext3.1

13 Oct 2010, 9:41 PM
Any updates on this? I too am looking for a legendRender function.

8 Dec 2010, 4:41 AM
Related YUI 2 bug: http://yuilibrary.com/projects/yui2/ticket/2529074