Page 1 of 1

ColorGrid: visible gaps between cells

Posted: Fri Apr 24, 2009 7:56 am
by 13050341
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?

Posted: Fri Apr 24, 2009 9:59 am
by 10050769
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,

Posted: Mon Apr 27, 2009 7:48 am
by 13050341
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.

Posted: Mon Apr 27, 2009 10:54 am
by 10050769
Hello ahellwig,


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


Thanks,

Posted: Wed May 06, 2009 11:57 am
by 13050341
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)?

Posted: Wed May 06, 2009 12:52 pm
by narcis
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.