Is it possible to add some text next to one of the points in the graph?
How?
Thanks in advance

Lars Iversen
Code: Select all
private void tChart1_AfterDraw(object sender, Steema.TeeChart.Drawing.Graphics3D g)
{
g.TextOut(line1.CalcXPos(5),line1.CalcYPos(5),"My Custom Text");
}
Code: Select all
private void line1_GetSeriesMark(Steema.TeeChart.Styles.Series series, Steema.TeeChart.Styles.GetSeriesMarkEventArgs e)
{
if (e.ValueIndex!=5) e.MarkText="";
else e.MarkText="My Custom Text";
}
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
![]() ![]() ![]() ![]() ![]() ![]() |
Instructions - How to post in this forum |
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
![]() ![]() ![]() ![]() ![]() ![]() |
Instructions - How to post in this forum |
Code: Select all
private void tChart1_AfterDraw(object sender, Steema.TeeChart.Drawing.Graphics3D g)
{
g.Font.Color = Color.Blue;
g.Font.Size=14;
g.Font.Name="Times New Roman";
g.RotateLabel(100,100,"Rotated Label", 45);
}
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
![]() ![]() ![]() ![]() ![]() ![]() |
Instructions - How to post in this forum |
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
![]() ![]() ![]() ![]() ![]() ![]() |
Instructions - How to post in this forum |
Have you tried setting the zoom direction?When the user zooms or scrolls i set the left axis minimum and maximum to the saved values. this way the user can only zoom the x-axis (That is what I want in this case)
Code: Select all
tChart1.Zoom.Direction=Steema.TeeChart.ZoomDirections.Horizontal;
You need to make that assignment in a place where the axes are already drawn so that they have valid values. You may want to try using the line below before executing those statements.Then My two variables ( m_dblYMax and m_dblYMin) are always zero. So in my zoom event i accidentially set min and max on the left axis to zero.
Is there a way to make it work so I can use:
m_dblYMax = TChart1.Axes.Left.Maximum
m_dblYMin = TChart1.Axes.Left.Minimum
Code: Select all
Bitmap bmp=tChart1.Bitmap;
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
![]() ![]() ![]() ![]() ![]() ![]() |
Instructions - How to post in this forum |