Page 1 of 1

Hiding polygon boundaries in a Map series

Posted: Fri Jan 29, 2010 11:37 pm
by 15653872
Hello,

I'm working on a chart that contains both Map and Line series. I'm trying to turn off any boundaries between the polygons in the map, and have had some success by setting

Code: Select all

map1.Pen.Visible = false; 
tChart1.Aspect.SmoothingMode = SmoothingMode.HighSpeed; 
The resulting plot looks good, but I don't like the jagged look of the border Line:
highspeed.jpg
highspeed.jpg (33.21 KiB) Viewed 2477 times
.

When I change the SmoothingMode to HighQuality or AntiAlias the orange outline looks better but the boundaries of the polygons appear, and I don't want those to show up:
highquality.jpg
highquality.jpg (34.07 KiB) Viewed 2472 times
Is it possible to set the smoothing modes of the series individually, or otherwise to get the smoothed outline without the polygon borders?

Thank you very much!
Bob

Re: Hiding polygon boundaries in a Map series

Posted: Mon Feb 01, 2010 3:54 pm
by yeray
Hi Bob,

I've been able to reproduce the issue here with the following code so I've added it to the wish list to be improved in future releases (TF02014662).

Code: Select all

private void InitializeChart()
        {
            chartController1.Chart = tChart1;

            tChart1.Aspect.View3D = false;
            tChart1.Legend.Visible = false;

            Steema.TeeChart.Styles.Map map1 = new Steema.TeeChart.Styles.Map(tChart1.Chart);
            int[] X = new int[4];
            int[] Y = new int[4];

            for (int i = 0; i < 10; i++)
            {
                X[0] = (i % 2);
                X[1] = X[0] + 1;
                X[2] = X[1];
                X[3] = X[0];

                Y[0] = (i / 2);
                Y[1] = Y[0];
                Y[2] = Y[0] + 1;
                Y[3] = Y[1] + 1;

                map1.Add(X, Y, i, "");                
            }

            tChart1.Axes.Bottom.Increment = 1;

            map1.Pen.Visible = false;            
            tChart1.Aspect.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.HighSpeed;     
        }

        private void checkBox1_CheckedChanged(object sender, EventArgs e)
        {
            if (checkBox1.Checked)
              tChart1.Aspect.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.HighQuality;
            else
              tChart1.Aspect.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.HighSpeed;     
        }