Steema Issues Database

Note: This database is for bugs and wishes only. For technical support help, if you are a customer please visit our online forums;
otherwise you can use StackOverflow.
Before using this bug-tracker we recommend a look at this document, Steema Bug Fixing Policy.



Bug 2600 - Series clipping non-functional in TeeChart.Server
Summary: Series clipping non-functional in TeeChart.Server
Status: RESOLVED FIXED
Alias: None
Product: .NET TeeChart
Classification: Unclassified
Component: .NET 5.0 (show other bugs)
Version: unspecified
Hardware: PC All
: High major
Target Milestone: ---
Assignee: Steema Issue Manager
URL: https://steema.com/support/viewtopic....
Keywords:
Depends on:
Blocks:
 
Reported: 2023-04-04 13:22 EDT by christopher ireland
Modified: 2023-04-05 06:28 EDT (History)
0 users

See Also:
Chart Series: ---
Delphi / C++ Builder RAD IDE Version:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description christopher ireland 2023-04-04 13:22:11 EDT
The following code produces an image in which the line series is not clipped to the Chart rectangle:

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 = 50;
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 = new Line(mChart.Chart);
line.LinePen.Width = 2;
line.Color = System.Drawing.Color.Green;

line.Add(0, 60);
line.Add(20, 40);
line.Add(40, 60);
line.Add(80, 40);
line.Add(100, 60);

mChart.Series.Add(line);

mChart.Export.Image.PNG.Width = 800;
mChart.Export.Image.PNG.Height = 400;
mChart.Export.Image.PNG.Save($"D:\\TeeChartTest\\chart_1.png");