Results 1 to 5 of 5

Thread: Render functions for tooltip and legend on pie chart

  1. #1
    Sencha User
    Join Date
    Sep 2010
    Posts
    53

    Default Render functions for tooltip and legend on pie chart

    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?

  2. #2
    Sencha User Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246

    Default

    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).

  3. #3
    Sencha User
    Join Date
    Sep 2010
    Posts
    53

    Default

    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

  4. #4
    Sencha User
    Join Date
    May 2009
    Posts
    104

    Default

    Any updates on this? I too am looking for a legendRender function.

  5. #5

Similar Threads

  1. Pie chart legend problem
    By dave26540 in forum Ext 3.x: Help & Discussion
    Replies: 4
    Last Post: 2 Dec 2012, 10:25 PM
  2. Pie Chart - how to customize legend text
    By khairold in forum Ext 3.x: Help & Discussion
    Replies: 10
    Last Post: 2 Dec 2012, 10:20 PM
  3. [CLOSED-788] Pie chart tooltip partially hidden
    By albeva in forum Ext 3.x: Bugs
    Replies: 4
    Last Post: 19 May 2010, 7:37 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •