[CLOSED] Chart Tip

  1. #1

    [CLOSED] Chart Tip

    I have a Column Chart that has multiple YFields (2012, 2011, 2010). My current tip renderer shows something like "Coke: 165". I would like the tip for that column to say "2009: 165". Is there a way to get the legend label for the column tip.

                // Create: Column Series
                ColumnSeries cSeries = new ColumnSeries();
                cSeries.Axis = Position.Left;
                cSeries.Highlight = true;
                cSeries.XField = new string[] { "Name" };
                cSeries.YField = yFields;
    
                // Configure: Column Series Tips
                cSeries.Tips = new ChartTip();
                cSeries.Tips.TrackMouse = true;
                cSeries.Tips.Width = 140;
                cSeries.Tips.Height = 28;
                cSeries.Tips.Renderer.Handler = "this.setTitle(String(item.value[0]) + ': ' + String(item.value[1]));";
    Click image for larger version. 

Name:	ChartTips01.jpg 
Views:	70 
Size:	64.6 KB 
ID:	5024
    Last edited by Daniil; Nov 05, 2012 at 6:06 AM. Reason: [CLOSED]
  2. #2
    Please close the thread. After investigate a little more I found the following attribute index.yField and changed my tip renderer to:

    cSeries.Tips.Renderer.Handler = 
          "this.setTitle('Year ' + 
                          item.yField.substr(1, 4) + ' - ' + 
                          String(item.value[1]));";
    So I now see "Year 2010 - 165".

Similar Threads

  1. Pie chart example
    By Gamerome in forum 2.x Help
    Replies: 2
    Last Post: Sep 09, 2012, 7:17 PM
  2. [CLOSED] Chart Line
    By pdcase in forum 2.x Legacy Premium Help
    Replies: 9
    Last Post: Aug 14, 2012, 3:25 PM
  3. Replies: 2
    Last Post: Aug 13, 2012, 2:12 PM
  4. Replies: 1
    Last Post: Jun 02, 2012, 7:12 AM
  5. Chart
    By zanotto in forum 2.x Help
    Replies: 7
    Last Post: Mar 09, 2012, 11:47 AM

Posting Permissions