Markers

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
histry
Newbie
Newbie
Posts: 79
Joined: Thu Aug 10, 2006 12:00 am

Markers

Post by histry » Wed Sep 20, 2006 4:16 pm

Is it possible to display just the marker on a fastline and not any value etc

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

Post by Narcís » Thu Sep 21, 2006 8:21 am

Hi histry,

You can try doing something like this:

Code: Select all

      fastLine1.Marks.Visible = true;
      fastLine1.Marks.Arrow.Visible = false;
      fastLine1.Color = Color.Transparent;
If that's not what you are looking for, could you please be more specific on what you need?
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

histry
Newbie
Newbie
Posts: 79
Joined: Thu Aug 10, 2006 12:00 am

Markers

Post by histry » Thu Sep 21, 2006 12:08 pm

What I need to do is display the fastline with markers. I dont want to see any labels like the value, percent etc.

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

Post by Narcís » Thu Sep 21, 2006 2:24 pm

Hi histry,

What do you exactly mean with "markers"?

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

histry
Newbie
Newbie
Posts: 79
Joined: Thu Aug 10, 2006 12:00 am

Markers

Post by histry » Thu Sep 21, 2006 2:27 pm

I would like to see the symbol (square) but not the label

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

Post by Narcís » Thu Sep 21, 2006 2:47 pm

Hi histry,

You may mean the series pointer. FastLine series, for its nature, doesn't have pointers. To use them you should use Line series:

Code: Select all

    Steema.TeeChart.Styles.Line line1 = new Steema.TeeChart.Styles.Line(tChart1);
    line1.FillSampleValues();
    line1.Pointer.Visible = true;
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

histry
Newbie
Newbie
Posts: 79
Joined: Thu Aug 10, 2006 12:00 am

Markers

Post by histry » Thu Sep 21, 2006 2:56 pm

I agree that is what I am looking for. The issue I have is that I have very large data arrays and need the performance of the fastline. Is there any plans on supporing points for fastlines in future releases.

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

Post by Narcís » Thu Sep 21, 2006 3:00 pm

Hi histry,

I don't think so as for FastLine to be as fast as possible we need to use the minimum elements possible.

For some hints on how to optimize your chart performance you can read this article and have a look at the All Features\Welcome !\Speed examples 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

histry
Newbie
Newbie
Posts: 79
Joined: Thu Aug 10, 2006 12:00 am

Markers

Post by histry » Thu Sep 21, 2006 3:05 pm

Would be nice if you could display a couple of points on a fastline for printing purposes. I understand your concern but you could implement it the same a markers where you can set a property for the number of markers to display

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

Post by Narcís » Fri Sep 22, 2006 8:48 am

Hi histry,

You can already custom draw the marks on the chart's canvas doing something like this:

Code: Select all

    private void DrawSeriesPointers()
    {
      Rectangle r = new Rectangle();

      for (int i = 0; i < tChart1[0].Count; i++)
      {
        r.Width = 5;
        r.Height = r.Width;
        r.X = tChart1[0].CalcXPos(i) - (r.Width  / 2);
        r.Y = tChart1[0].CalcYPos(i) - (r.Height  / 2);        

        tChart1.Graphics3D.Brush.Visible = true;
        tChart1.Graphics3D.Rectangle(r);
      }
    }

    private void tChart1_AfterDraw(object sender, Steema.TeeChart.Drawing.Graphics3D g)
    {
      DrawSeriesPointers();
    }
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

Marjan
Site Admin
Site Admin
Posts: 745
Joined: Fri Nov 07, 2003 5:00 am
Location: Slovenia
Contact:

Re: Markers

Post by Marjan » Fri Sep 22, 2006 5:45 pm

9642161 wrote:Would be nice if you could display a couple of points on a fastline for printing purposes. I understand your concern but you could implement it the same a markers where you can set a property for the number of markers to display
If you only need to display couple of points, then the best solution is to add another "regular" point series to chart, populate it with specific points from fastline series and then format it according to your needs. This way you'll still be able to benefit speed from fastline series.
Marjan Slatinek,
http://www.steema.com

histry
Newbie
Newbie
Posts: 79
Joined: Thu Aug 10, 2006 12:00 am

Markers

Post by histry » Fri Sep 22, 2006 6:15 pm

These are all good work arrounds. I guess the question is for version 3 is there any consideration on adding points to the fastline series where you can specify that you only want the points displayed every so many data points. Similar to the way that markers work.

When printing the charts with something other than color printers it is important to be able to associate a symbol to a series.

Thanks

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

Post by Narcís » Mon Sep 25, 2006 7:58 am

Hi histry,

I don't think it's going to be implemented. However, using line series with visible pointers or point series you can also choose which pointers you want to display using the GetPointerStyle as shown on this message.
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

histry
Newbie
Newbie
Posts: 79
Joined: Thu Aug 10, 2006 12:00 am

Markers

Post by histry » Mon Sep 25, 2006 2:26 pm

I need the performance of your fastline as I am returning 10's of thousands of points.

Marjan
Site Admin
Site Admin
Posts: 745
Joined: Fri Nov 07, 2003 5:00 am
Location: Slovenia
Contact:

Post by Marjan » Tue Sep 26, 2006 1:03 pm

I think any additional coding (including filtering of points before displaying) would most likely create an overhead i.e. the fastline series would become slower.
Marjan Slatinek,
http://www.steema.com

Post Reply