![]() | Steema Issues DatabaseNote: 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. |
| Summary: | IsoHorizAxes/IsoVertAxes not rendering correctly when WinForm maximized | ||
|---|---|---|---|
| Product: | .NET TeeChart | Reporter: | christopher ireland <chris> |
| Component: | Axes | Assignee: | Steema Issue Manager <issuemanager> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | raavi.mohindar.rao |
| Priority: | --- | ||
| Version: | TeeChart.NET 2014 4.1.2014.02060 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows | ||
| Chart Series: | --- | Delphi / C++ Builder RAD IDE Version: | |
May I have any updates on this bug? I'm afraid that this defect has not been fixed for the upcoming maintenance release, but will be given careful attention next week. Thanks. Hope there is some solution in this week. This is now fixed, and there is an effective workaround to this issue which only occurs when the axes are set to Visible=false. The workaround is the follows:
private void InitializeChart()
{
Line m_Line = new Line(tChart1.Chart);
double[] m_RectangleX = new double[5];
double[] m_RectangleY = new double[5];
tChart1.Aspect.View3D = false;
m_RectangleX[0] = -50.0;
m_RectangleY[0] = -50.0;
m_RectangleX[1] = 50.0;
m_RectangleY[1] = -50.0;
m_RectangleX[2] = 50.0;
m_RectangleY[2] = 50.0;
m_RectangleX[3] = -50.0;
m_RectangleY[3] = 50.0;
m_RectangleX[4] = -50.0;
m_RectangleY[4] = -50.0;
m_Line.XValues.Count = 5;
m_Line.XValues.Value = m_RectangleX;
m_Line.YValues.Count = 5;
m_Line.YValues.Value = m_RectangleY;
tChart1.Series.Add(m_Line);
tChart1.Axes.Bottom.Automatic = false;
tChart1.Axes.Bottom.Minimum = -100.0;
tChart1.Axes.Bottom.Maximum = 100.0;
tChart1.Axes.Bottom.Visible = false;
tChart1.Axes.Bottom.Ticks.Length = 0;
tChart1.Axes.Left.Automatic = false;
tChart1.Axes.Left.Minimum = -100.0;
tChart1.Axes.Left.Maximum = 100.0;
tChart1.Axes.Left.Visible = false;
tChart1.Axes.Left.Ticks.Length = 0;
m_Line.IsoHorizAxes = true;
tChart1.BeforeDrawSeries += tChart1_BeforeDrawSeries;
}
void tChart1_BeforeDrawSeries(object sender, Graphics3D g)
{
tChart1.Axes.Bottom.AdjustMaxMin();
}
Fixed: Confirmed. Works now. |
The following code illustrates the problem. Run the code then maximize the window - the chart is only rendered correctly after a zoom/unzoom operation. public Form1() { InitializeComponent(); m_Chart.Aspect.View3D = false; m_RectangleX[0] = -50.0; m_RectangleY[0] = -50.0; m_RectangleX[1] = 50.0; m_RectangleY[1] = -50.0; m_RectangleX[2] = 50.0; m_RectangleY[2] = 50.0; m_RectangleX[3] = -50.0; m_RectangleY[3] = 50.0; m_RectangleX[4] = -50.0; m_RectangleY[4] = -50.0; m_Line.XValues.Count = 5; m_Line.XValues.Value = m_RectangleX; m_Line.YValues.Count = 5; m_Line.YValues.Value = m_RectangleY; m_Chart.Series.Add(m_Line); m_Chart.Axes.Bottom.Automatic = false; m_Chart.Axes.Bottom.Minimum = -100.0; m_Chart.Axes.Bottom.Maximum = 100.0; m_Chart.Axes.Bottom.Visible = false; m_Chart.Axes.Bottom.Ticks.Length = 0; m_Chart.Axes.Left.Automatic = false; m_Chart.Axes.Left.Minimum = -100.0; m_Chart.Axes.Left.Maximum = 100.0; m_Chart.Axes.Left.Visible = false; m_Chart.Axes.Left.Ticks.Length = 0; m_Line.IsoHorizAxes = true; }