Teechart Display area

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
amol
Advanced
Posts: 231
Joined: Tue Mar 29, 2005 5:00 am

Teechart Display area

Post by amol » Wed Jun 11, 2014 11:52 am

Hi

I am marking point in top,bottom,left and right but point is not marked and visible in that area, i have crosschecked the code and i have not set any top bottom,left and right margin. if i draw any line and i want to show the line in whole are then it left few margin from top and bottom and vice versa from right to left. plz suggest.

Thanks in advance

Christopher
Guru
Posts: 1603
Joined: Fri Nov 15, 2002 12:00 am

Re: Teechart Display area

Post by Christopher » Wed Jun 11, 2014 2:22 pm

amol wrote:I am marking point in top,bottom,left and right but point is not marked and visible in that area, i have crosschecked the code and i have not set any top bottom,left and right margin. if i draw any line and i want to show the line in whole are then it left few margin from top and bottom and vice versa from right to left. plz suggest.
Would you please be so kind as to post a Short, Self Contained, Correct (Compilable), Example with which I can reproduce the problem here?
Best Regards,
Christopher Ireland / 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

amol
Advanced
Posts: 231
Joined: Tue Mar 29, 2005 5:00 am

Re: Teechart Display area

Post by amol » Thu Jun 12, 2014 7:03 am

I want to draw line between two point in teechart but when i select the one point from top of the chart and one point from bottom then both points are not visible and not selected. so i am unable to draw the line, i crosschecked the code i have not set any margin in teechart. i have set only

tchart.Axes.Bottom.Minimum = min_x;
tchart.Axes.Bottom.Maximum = max_x;
tchart.Axes.Left.Minimum = min_y;
tchart.Axes.Left.Maximum = max_y;

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: Teechart Display area

Post by Narcís » Thu Jun 12, 2014 1:33 pm

Hello amol,

I'm sorry but I don't understand which is the exact problem you are having. So, as Christopher Ireland already suggested:
Christopher wrote: Would you please be so kind as to post a Short, Self Contained, Correct (Compilable), Example with which I can reproduce the problem here?
so that we can see which is the exact problem and try to suggest a solution to it?

Thanks in advance.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

amol
Advanced
Posts: 231
Joined: Tue Mar 29, 2005 5:00 am

Re: Teechart Display area

Post by amol » Fri Jun 13, 2014 6:24 am

I have attached the image plz find, My aim is draw the line over the teechart which cross the whole teechart . if i select one point from top and other point i select at mid the line should draw from top to bottom. how to achieve this. and second thing i am not able to select the point at top. i am attaching another image also . my line should look like 4.png. currently my line is drawing like 3.png.
Attachments
4.png
Required Line
4.png (3.28 KiB) Viewed 11906 times
3.png
Currently this line drawing
3.png (6.05 KiB) Viewed 11892 times

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: Teechart Display area

Post by Narcís » Fri Jun 13, 2014 7:22 am

Hello amol,

Pardon me for insisting but, could you please send us the Short, Self Contained, Correct (Compilable), Example project Christopher and I asked for? We are willing to help you solve your problems. However, without executing and debugging your code and seeing how you are selecting points and painting those lines it's almost impossible for use providing an accurate answer.

Thanks in advance.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

amol
Advanced
Posts: 231
Joined: Tue Mar 29, 2005 5:00 am

Re: Teechart Display area

Post by amol » Fri Jun 13, 2014 9:57 am

Leave all the things, if i need to draw the lines after picking two points as attached like 4.png then how can i draw? 3.png is my current line.

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: Teechart Display area

Post by Narcís » Fri Jun 13, 2014 11:15 am

Hi amol,

The easiest options is using a DrawLine tool:

Code: Select all

      tChart1.Series.Add(new Steema.TeeChart.Styles.Points()).FillSampleValues();
      tChart1.Tools.Add(new Steema.TeeChart.Tools.DrawLine());
You'll find more examples at the All Features\Welcome !\Tools\ section in the features demo, available at TeeChart's program group.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply