Hi, I'm hoping some people on the forum may have some answers to some problems we've been having with Steema 4's TeeChart.
Our company is upgrading from TeeChart v2 to TeeChart v4 and some of the existing functionality no longer works.
1) The checkbox legend now shows and hides pen series' when clicked but does not visibly change checked state
2) When scrolling left or right the series pen data and line move but the Xaxis remains fixed and no longer coincides with the data
3) The properties, Xaxis.EndPosition/Xaxis.StartPosition and Yaxis.EndPosition/Yaxis.StartPosition only work as percentages (0-100) even when Xaxis/Yaxis .PositionUnits is set to Pixels
Any thoughts?
Problems upgrading Steema 2 to Steema 4
Re: Problems upgrading Steema 2 to Steema 4
Hello BenW,
Could you please tell us if you can reproduce your problem using my code? If your problem doesn't appear with my code, please try to arrange for us a simple project where your problem appears, because we can try to find a solution for it.
I can get next image:
If you change PositionUnits.Pixels to PositionUnits.Percent I can get next image:
You can see differences in the both images, when you work with percent or pixels, therefore the StartPosition and EndPostion not only works with percent. If your problem persist, would be very grateful if you can explain us exactly where the problem is produced and why do you consider the properties doesn't works by pixels because we can try to help you?
Thanks,
I can not reproduce your problem using next code with latest maintenance release of TeechartFor.Net, build number build 4.1.2013.07300.1) The checkbox legend now shows and hides pen series' when clicked but does not visibly change checked state
Code: Select all
private void InitializeChart()
{
tChart1.Aspect.View3D = false;
for (int i = 0; i < 4; i++)
{
new FastLine(tChart1.Chart);
tChart1[i].FillSampleValues();
}
tChart1.Legend.CheckBoxes = true;
}
Sorry, but I can not reproduce your problem when I doing scroll, using previous code, the scroll of left or right axes works in my end. Could you please arrange a simple code for us where the problem appears?2) When scrolling left or right the series pen data and line move but the Xaxis remains fixed and no longer coincides with the data
To defalut PositionUnits is percent, but if using next code:3) The properties, Xaxis.EndPosition/Xaxis.StartPosition and Yaxis.EndPosition/Yaxis.StartPosition only work as percentages (0-100) even when Xaxis/Yaxis .PositionUnits is set to Pixels
Code: Select all
public Form1()
{
InitializeComponent();
InitializeChart();
}
private void InitializeChart()
{
tChart1.Aspect.View3D = false;
for (int i = 0; i < 4; i++)
{
new FastLine(tChart1.Chart);
tChart1[i].FillSampleValues();
}
tChart1.Legend.CheckBoxes = true;
tChart1.Axes.Left.StartEndPositionUnits = PositionUnits.Pixels;
tChart1.AfterDraw += tChart1_AfterDraw;
tChart1.Draw();
button1.Click +=button1_Click;
}
void tChart1_AfterDraw(object sender, Graphics3D g)
{
Rectangle rect = tChart1.Chart.ChartRect;
tChart1.Axes.Left.StartPosition = 1;
tChart1.Axes.Left.EndPosition = rect.Height;
this.Text = tChart1.Axes.Left.StartPosition.ToString() + "," + tChart1.Axes.Left.EndPosition.ToString();
}
Thanks,
Best Regards,
Sandra Pazos / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
Re: Problems upgrading Steema 2 to Steema 4
In testing your submitted sample for problems 1 and 2 it appears the chart has none of the reported bugs, I'm not sure what exactly is different about the way we use the chart that could cause such behavior.
There is huge amounts of code involved surrounding the chart which is embedded in our own application, I'm not sure where to begin looking. We still have an Xaxis scale issue and a legend checkbox issue.
Our Xaxis scrolls with the left mouse button and a context menu appears with the right mouse button. Also our legend is positioned absolutely with custom positioning could this cause the checkboxes not to work?
As for problem 3, we did see that exact issue (as seen in the image) where the axis overruns the bottom edge of the chart. We have resolved the issue by using 100 as a percentage instead of a height in pixels regardless of the units the chart is configured in.
There is huge amounts of code involved surrounding the chart which is embedded in our own application, I'm not sure where to begin looking. We still have an Xaxis scale issue and a legend checkbox issue.
Our Xaxis scrolls with the left mouse button and a context menu appears with the right mouse button. Also our legend is positioned absolutely with custom positioning could this cause the checkboxes not to work?
As for problem 3, we did see that exact issue (as seen in the image) where the axis overruns the bottom edge of the chart. We have resolved the issue by using 100 as a percentage instead of a height in pixels regardless of the units the chart is configured in.
Re: Problems upgrading Steema 2 to Steema 4
Hello BenW,
Thanks,
Axis scroll problem isn't produced for me and the problem with checkboxes doesn't appear for me, using a custom position of legend. In this point, If my code works for you, I recommend you try to create a simple code where the both problems, the scrolling axes and legend checkboxes, appear, because we can reproduce these here and try to suggest a solution for you.There is huge amounts of code involved surrounding the chart which is embedded in our own application, I'm not sure where to begin looking. We still have an Xaxis scale issue and a legend checkbox issue.
Our Xaxis scrolls with the left mouse button and a context menu appears with the right mouse button. Also our legend is positioned absolutely with custom positioning could this cause the checkboxes not to work?
Thanks,
Best Regards,
Sandra Pazos / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |