Page 1 of 1

DataTableTool

Posted: Mon Jun 08, 2009 12:57 pm
by 13047002
Legend

Why when the legend is visible in the datatable on the Left hand side. Is it not possible that the column border always lines up with the Left Axis?

The chart looks messy when first column does not line up wiht the axis

And why is there no auto font size. The Datatable in Excel auto resizes the font to fit


Also when the Labels on the Bottom Axis are multiline the AutoPosition is incorrect. It does not adjust correctly

and yet another bug, when resizing a chart, alternate column texts dissapear????? making the chart bigger doesnt even help. texts flicker on/off

Posted: Tue Jun 09, 2009 2:52 pm
by narcis
Hi Luke,
Why when the legend is visible in the datatable on the Left hand side. Is it not possible that the column border always lines up with the Left Axis?

The chart looks messy when first column does not line up wiht the axis
Which TeeChart build are you using? Please notice that important enhancements to DataTableTool functionality were made for last maintenance release. Can you please check if it solves the problem for you? Otherwise, can you please send us an image of the exact problem you are seeing?

You can either post your files at news://www.steema.net/steema.public.attachments newsgroup or at our upload page.
And why is there no auto font size. The Datatable in Excel auto resizes the font to fit
I'll add your request to the wish-list to be considered for inclusion in future releases (TF02014227).
Also when the Labels on the Bottom Axis are multiline the AutoPosition is incorrect. It does not adjust correctly
I'm afraid it's a bug which I have added to the list (TF02014228) to be fixed for future releases.
and yet another bug, when resizing a chart, alternate column texts dissapear????? making the chart bigger doesnt even help. texts flicker on/off
I think this is by design. DataTableTool, the same as axes, automatically set as many labels (columns) as can be fitted in provided they don't overlap. Automatic font sizing feature you requested could be an alternative to this behavior.

Posted: Tue Jun 09, 2009 3:00 pm
by 13047002
Its just sometimes this auto fitting seems to be very dubiuous. Sometimes there is clearly enough space and yet I lose column texts. Even when I make the Chart wider column texts flash on and off.

Teechart seems to behave better when I add Labels Seperately for bar charts.

If I have 3 series and I add 5 points for each, each with the point in series having the same label, e.g. label1-5. This causes quite a few problems with the bottom axis labelling. If however I add all the points without a labrl. Then add the labels seperately using Axes.Bottom.Labels.Items.Add(pos,Label). The chart behaves better

Posted: Wed Jun 10, 2009 10:57 am
by narcis
Hi Luke,

That's because when adding custom labels using Labels.Items.Add you are not using automatic labelling features. Therefore, making the chart smaller should make those labels overlap at some stage.

Posted: Wed Jun 10, 2009 11:25 am
by 13047002
but doesnt that mean the automatic labelling functions are slightly buggy?

There seems to be always plenty of space for them but yet some are automatically hidden.

They dissapear when making the chart bigger and not just smaller.

Posted: Wed Jun 10, 2009 11:35 am
by narcis
Hi Luke,

Can you please send us a simple example project we can run "as-is" reproducing this?

Thanks in advance.

Posted: Wed Jun 10, 2009 11:49 am
by 13047002
just emailed zip to support@steema.com. thx

Posted: Wed Jun 10, 2009 11:59 am
by narcis
Hi Luke,

I'm sorry but this e-mail address is obsolete as we don't offer direct e-mail support except for Pro-Support subscribers. Can you please post your files at news://www.steema.net/steema.public.attachments newsgroup or at our upload page?

Thanks in advance.

Posted: Wed Jun 10, 2009 12:03 pm
by 13047002
Hi

I need to email it as upload pages get blocked here.

thx

Posted: Wed Jun 10, 2009 1:21 pm
by narcis
Hello Luke,

Thanks for your e-mail.
Please see when adjusting form size to smaller or bigger vertically. Labels disappear and reappear.

Even with the default start-up size there should be enough room for all labels. But some are still hidden.
I agree, this is already a known issue we will try to fix for future releases. In the meantime, the only solution I can think of is using custom labels for the left axis as you already mentioned.
Also note when making smaller they also reappear ;-)
I'm not able to reproduce this here using your project. In your project, if I make little changes as shown below and click the chart to make it higher I'm not able to see labels disappearing. Can you please modify the code below so that we can reproduce the issue here?

Code: Select all

        public void InitChart()
        {
            ClearAll();
            tChart.Axes.Visible = true;
            tChart.Walls.Visible = true;
						tChart.Dock = DockStyle.Fill;
						tChart.Click += new EventHandler(tChart_Click);
        }

				void tChart_Click(object sender, EventArgs e)
				{
					this.Size = new Size(this.Size.Width, this.Size.Height + 10);
				}
Thanks in advance.
Tchart should at autofont size property to chart as well as fixing this bug. So that the font size of labels/datatables etc are decreased/increased depending on chart size.
As I told you I already added this request to the wish-list to be considered for inclusion in future releases.

Posted: Wed Jun 10, 2009 1:25 pm
by 13047002
Ok thx Narcis

Think I will go with adding labels directly to axis as its a easier/cleaner solution than firing an event on the resize.

Please also as I mentioned before this occurs on the bottom axis too.