Hi,
I am using a TreeMapChart and i want a custom tooltip. I have columns like Category,Name,Price and Sales. The treemap chart has generated according to the category. I tried to set the custom tooltip as explained in this article
http://devcenter.infragistics.com/Support/KnowledgeBaseArticle.aspx?ArticleID=2807
I see the tooltip created but the values get misplaced. The highest category displays the 2 category values and so on respectively. The least category does not have any of the tooltip instead throws a error message
No Row at position .
I really dont understand what is this problem. Could anyone help to solve this issue?
Thanks in advance
Ferdin
it's hard to tell what's going on because i don't know how IRenderLabel is being implemented. what does your IRenderLabel.ToString(Hashtable context) method look like? are you using context["DATA_ROW"] to get the row index like in that KB article?
David
Thanks for your reply. Yes i am using context["DATA_ROW"]. I am attaching the code of IRenderClass which i used here.
using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
using Infragistics.UltraChart.Resources;
using System.Data;
{
public class RenderLabel:IRenderLabel
System.Text.StringBuilder ReturnValue;
localDT = myData;
}
ReturnValue.Length = 0;
DR = localDT.Rows[RowIndex];
ReturnValue.Append("Department:");
ReturnValue.Append("\n");
ReturnValue.Append(DR["ItemNumber"]);
ReturnValue.Append("Stock:");
ReturnValue.Append(DR["Description"]);
Hope this helps you to figure out my problem.
Thanks