Page 1 of 1

Teechart Display area

Posted: Wed Jun 11, 2014 11:52 am
by 9526439
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

Re: Teechart Display area

Posted: Wed Jun 11, 2014 2:22 pm
by Christopher
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?

Re: Teechart Display area

Posted: Thu Jun 12, 2014 7:03 am
by 9526439
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;

Re: Teechart Display area

Posted: Thu Jun 12, 2014 1:33 pm
by narcis
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.

Re: Teechart Display area

Posted: Fri Jun 13, 2014 6:24 am
by 9526439
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.

Re: Teechart Display area

Posted: Fri Jun 13, 2014 7:22 am
by narcis
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.

Re: Teechart Display area

Posted: Fri Jun 13, 2014 9:57 am
by 9526439
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.

Re: Teechart Display area

Posted: Fri Jun 13, 2014 11:15 am
by narcis
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.