Hi,
Thanks.
First can let me know or point me to an article on the differences between UltraChart and UltraDataChart. Which is the better one to use?
I tried the following code –
Control series1_TooltipContentUpdating(object sender, ChartTooltipContentEventArgs e)
{
Control ctl = e.CurrentContent;
if (ctl != null && e.DataContext.Item != null)
{
ctl.SuspendLayout();
SetControlText(ctl, e.DataContext.Item);
ctl.ResumeLayout();
}
return ctl;
}
private void SetControlText(Control ctl, object item)
{
foreach (Control ctl1 in ctl.Controls)
{
Control ctl2 = ctl1;
if (ctl2.Text.Equals(string.Format("{0}:",_yFieldName)))
{
ctl2.Text = ctl2.Text.Replace(_yFieldName, _yFieldDisplayName);
}
SetControlText(ctl2, item);
}
}
This seems to find the text and replace it. However the label displayed is blurry on the screen.
Regards,
Naresh
D-Tools Inc.