Holes in line series
Posted: Fri Nov 25, 2022 3:05 pm
Visual Studio 2022,
.net7.0 console project,
Steema.TeeChart.NET.Pro (4.2022.11.24)
I am reporting a few issues:
1. There are holes in line series for chart rendered to images (jpg, png, etc) for some sizes of result picture.
2. Stairs line and Inverted stairs line does not work.
3. No top edge line of area stairs series
Cede to reproduce issues:
.net7.0 console project,
Steema.TeeChart.NET.Pro (4.2022.11.24)
I am reporting a few issues:
1. There are holes in line series for chart rendered to images (jpg, png, etc) for some sizes of result picture.
2. Stairs line and Inverted stairs line does not work.
3. No top edge line of area stairs series
Cede to reproduce issues:
using Steema.TeeChart;
using Steema.TeeChart.Styles;
using System.Drawing;
var mChart = new TChart();
mChart.Aspect.View3D = false;
mChart.Header.Visible = false;
mChart.Legend.Visible = false;
mChart.Axes.Left.AutomaticMinimum = false;
mChart.Axes.Left.Minimum = 0;
mChart.Axes.Left.AutomaticMaximum = false;
mChart.Axes.Left.Maximum = 100;
mChart.Axes.Bottom.AutomaticMinimum = false;
mChart.Axes.Bottom.Minimum = 0;
mChart.Axes.Bottom.AutomaticMaximum = false;
mChart.Axes.Bottom.Minimum = 100;
//Line:
Line line = new Line(mChart.Chart);
line.LinePen.Width = 2;
line.Color = System.Drawing.Color.Green;
line.Smoothed= true;
line.Add(0, 60);
line.Add(20, 40);
line.Add(40, 60);
line.Add(80, 40);
line.Add(100, 60);
mChart.Series.Add(line);
int i = 1;
//Holes in the line for some picture sizes:
mChart.Export.Image.PNG.Width = 240;
mChart.Export.Image.PNG.Height = 120;
mChart.Export.Image.PNG.Save($"D:\\TeeChartTest\\chart_{i++:d2}.png");
mChart.Export.Image.PNG.Width = 320;
mChart.Export.Image.PNG.Height = 160;
mChart.Export.Image.PNG.Save($"D:\\TeeChartTest\\chart_{i++:d2}.png");
mChart.Export.Image.PNG.Width = 520;
mChart.Export.Image.PNG.Height = 260;
mChart.Export.Image.PNG.Save($"D:\\TeeChartTest\\chart_{i++:d2}.png");
mChart.Export.Image.PNG.Width = 800;
mChart.Export.Image.PNG.Height = 400;
mChart.Export.Image.PNG.Save($"D:\\TeeChartTest\\chart_{i++:d2}.png");
//Stairs line and Inverted stairs line does not work:
line.Smoothed = false;
line.Stairs = true;
mChart.Export.Image.PNG.Width = 800;
mChart.Export.Image.PNG.Height = 400;
mChart.Export.Image.PNG.Save($"D:\\TeeChartTest\\chart_{i++:d2}.png");
line.InvertedStairs = true;
mChart.Export.Image.PNG.Width = 800;
mChart.Export.Image.PNG.Height = 400;
mChart.Export.Image.PNG.Save($"D:\\TeeChartTest\\chart_{i++:d2}.png");
mChart.Series.Remove(line);
//Area:
Area area = new Area(mChart.Chart);
area.Stairs = true;
area.AreaLines.Visible = true;
area.AreaLines.Color = Color.Red;
area.AreaLines.Width = 2;
area.Add(0, 60);
area.Add(20, 40);
area.Add(40, 60);
area.Add(80, 40);
area.Add(100, 60);
mChart.Series.Add(area);
//No top edge line of area stairs series:
mChart.Export.Image.PNG.Width = 800;
mChart.Export.Image.PNG.Height = 400;
mChart.Export.Image.PNG.Save($"D:\\TeeChartTest\\chart_{i++:d2}.png");