Page 1 of 1
Tooltip for chart subheader
Posted: Mon May 18, 2009 8:48 am
by 13052797
Hi,
Can you please let me know if there is any way to add tool tips to the chart subheader.
Thanks And Regards,
Mahadevan
Posted: Mon May 18, 2009 10:55 am
by 10050769
Hello Mahadevan,
I suggest a solution for add Tooltips the chart subheader. Please check that next code works fine in your application:
InitializeChart:
Code: Select all
Steema.TeeChart.Styles.Bar bar;
private void InitializeChart()
{
bar = new Steema.TeeChart.Styles.Bar(tChart1.Chart);
bar.FillSampleValues();
tChart1.SubHeader.Text = "subheader";
tChart1.SubHeader.Visible = true;
tChart1.MouseMove += new MouseEventHandler(tChart1_MouseMove);
}
MouseMove Event:
Code: Select all
void tChart1_MouseMove(object sender, MouseEventArgs e)
{
if (tChart1.SubHeader.Clicked(e.X, e.Y))
{
string tmpText = "my subheader hint! " + e.X.ToString() + ", " + e.Y.ToString();
if (tChart1.Chart.ToolTip.Text != tmpText)
{
tChart1.Chart.ToolTip.Text = tmpText;
tChart1.Chart.ToolTip.Show();
}
}
else
{
tChart1.Chart.ToolTip.Hide();
}
}
I hope that will helps,
Thanks
Re: Tooltip for chart subheader
Posted: Thu Jul 23, 2009 9:09 pm
by 13052797
Hello Sandra,
I am looking for a way to add tooltips to the chart subheader in a web application and not windows application.
Can you please let me know if that is possible?
Thanks And Regards,
Mahadevan
Re: Tooltip for chart subheader
Posted: Fri Jul 24, 2009 10:20 am
by 10050769
Hello Mahadevan,
I recomend that see next
link, that explains as add toolTips using webControll in asp.
I hope will helps,
Thanks
Re: Tooltip for chart subheader
Posted: Fri Jul 24, 2009 10:32 am
by 13052797
Hello Sandra,
The link pointed out by you refers to using tooltips for server controls.
In this case TeeChart is the Control,if I enable tooltip on that it would be shown on the entire Chart if i am not
mistaken.
My question is about displaying the tooltips on the SubHeader part of the TeeChart.
I am looking for something similar in functionality to the code posted by you for windows application for web applications.
Thanks And Regards,
Mahadevan
Re: Tooltip for chart subheader
Posted: Mon Jul 27, 2009 10:08 am
by 10050769
Hello Mahadevan,
I'm sorry, but for now is not possible use ToolTips with WebChart and there is not other component that do something similar. I have added in feature request with number [TW77014315]to regardsin features versions of TeeChartFor .Net.
Thanks,