TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
-
BobG
- Newbie
- Posts: 4
- Joined: Thu Jul 09, 2009 12:00 am
Post
by BobG » Fri Jan 29, 2010 11:37 pm
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 (33.21 KiB) Viewed 2476 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 (34.07 KiB) Viewed 2471 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
-
Yeray
- Site Admin
- Posts: 9612
- Joined: Tue Dec 05, 2006 12:00 am
- Location: Girona, Catalonia
-
Contact:
Post
by Yeray » Mon Feb 01, 2010 3:54 pm
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;
}