ColorGrid: visible gaps between cells

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
ahellwig
Newbie
Newbie
Posts: 6
Joined: Wed Sep 17, 2008 12:00 am

ColorGrid: visible gaps between cells

Post by ahellwig » Fri Apr 24, 2009 7:56 am

Hello!

I'm using the ColorGrid series to display some data. The grid is displayed nicely when the spacing is 1 in X/Z direction and IrregularGrid is set to false. Pen visibility is also set to false.

However, when I set IrregularGrid to true (which I have to do in general, because the spacing may differ from 1 and there may be negative X/Z values), there is a visible gap between the cells of the ColorGrid, so the background color shows through. This doesn't look very nice, especially if the spacing of the data is small and the grid is very fine.

I'm using TeeChart v3.5.3371. Maybe I overlooked something in the documentation, but could you please tell me how to get rid of the gap to obtain a "smooth" display?

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Post by Sandra » Fri Apr 24, 2009 9:59 am

Hello ahellwing,

We couldn't reproduce your problem with last version of TeeChartFor .NET, please change next code, because we can reproduce exactly your problem here.

Code: Select all

        private void Initialize()
        {

            Steema.TeeChart.Styles.ColorGrid colorGrid1 = new Steema.TeeChart.Styles.ColorGrid(tChart1.Chart);
            colorGrid1.IrregularGrid = true;
            for (int x = -5; x < 5; x++)
            {
                for (int z = -5; z < 5; z++)
                {
                    colorGrid1.Add(x / 10.0, x, z / 10.0);
                }
            }

        }
Thanks,
Best Regards,
Sandra Pazos / 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

ahellwig
Newbie
Newbie
Posts: 6
Joined: Wed Sep 17, 2008 12:00 am

Post by ahellwig » Mon Apr 27, 2009 7:48 am

Hello!

I additionally added

colorGrid1.Pen.Visible = false;

in front of the for loop.

The result is:
Image

You can see a grid of lines between the cells. Unfortunately, I could not reproduce the background color shining through in this simple new program.

A partial screenshot of my program where I discovered this problem looks like this (panel has gradient background colors enabled):

Image

At a first glance, I could not find a significant difference in the source code for creating the chart on the form, which might be responsible for the different behaviour, but I will investigate this further.

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Post by Sandra » Mon Apr 27, 2009 10:54 am

Hello ahellwig,


I could reproduce your problem and this is a bug with number [TF02013109]. This only ocurrs when colorGrid1.IrregularGrid=true.


Thanks,
Best Regards,
Sandra Pazos / 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

ahellwig
Newbie
Newbie
Posts: 6
Joined: Wed Sep 17, 2008 12:00 am

Post by ahellwig » Wed May 06, 2009 11:57 am

Thanks for your response. Is there any time schedule when this might be fixed? Could you give me some advice which other series I could use to display two-dimensional colour distributions (irregular grid is important for me)?

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

Post by Narcís » Wed May 06, 2009 12:52 pm

Hi ahellwig,
Is there any time schedule when this might be fixed?
I'm sorry but I can not give an estimate date for now. I recommend you to be aware at this forum or subscribe to our RSS news feed for new release announcements and what's fixed in them.
Could you give me some advice which other series I could use to display two-dimensional colour distributions (irregular grid is important for me)?


You could use Bubble series setting its style to a rectangle.
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