hello!
I would like to know if it is possible to show some text inside a tooltip of TeeChart's series. At the moment, the tooltips are always showing the values of the series-labels.
thanks in advance
Robert
showing custom text unsing marksTip
-
- Site Admin
- Posts: 1349
- Joined: Thu Jan 01, 1970 12:00 am
- Location: Riudellots de la Selva, Catalonia
- Contact:
Re: showing custom text unsing marksTip
Hello!
Yes, you can use the GetText event of the MarksTip tool, e.g.rf2005 wrote:I would like to know if it is possible to show some text inside a tooltip of TeeChart's series. At the moment, the tooltips are always showing the values of the series-labels.
Code: Select all
public Form3()
{
InitializeComponent();
InitializeChart();
}
private Steema.TeeChart.Styles.Points series;
private Steema.TeeChart.Tools.MarksTip tool;
private Steema.TeeChart.TChart tChart1;
private void InitializeChart()
{
tChart1 = new Steema.TeeChart.TChart();
tChart1.Dock = DockStyle.Fill;
this.Controls.Add(tChart1);
tChart1.Series.Add(series = new Points());
series.FillSampleValues();
tChart1.Tools.Add(tool = new MarksTip());
tool.Series = series;
tool.GetText += new MarksTipGetTextEventHandler(tool_GetText);
}
void tool_GetText(MarksTip sender, MarksTipGetTextEventArgs e)
{
e.Text = "My Custom Text " + e.Text;
}
Thank you!
Christopher Ireland (Steema crew)
Please be aware of the newsgroup archives:
http://www.teechart.net/support/search.php
http://groups.google.com
http://codenewsfast.com/
Christopher Ireland (Steema crew)
Please be aware of the newsgroup archives:
http://www.teechart.net/support/search.php
http://groups.google.com
http://codenewsfast.com/