TeeChart .Net - a few questions

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
mash
Newbie
Newbie
Posts: 4
Joined: Tue Oct 31, 2006 12:00 am

TeeChart .Net - a few questions

Post by mash » Tue Feb 12, 2008 7:29 am

Hi all,

I have few questions concerning TeeChart for .NET v2.
I am using Steema.TeeChart.Styles.Line for creating charts, and have clickable legend.


1. Is there any possibility to add scrollbar to the legend?
I have several lines on the chart, but only the first few of them are visible on the legend. I know the "FirstValue" property, but would like to have scroll bar on the left side on the legend.


2. How to check the width of labels on the left axe?
I have two charts one below the second and would like to check the width of labels on the one chart and apply the value to the second one. Left axes on both charts should be on the same line.


3. How to turn on displaying seconds on the bottom axe labels?
I have the "date" values on the bottom axe, when I zoom the chart and display one minute period, all ticks have the same labels - only the hour and the minute.
The "Axes.Bottom.Automatic" property is set dynamically depending on the user actions, but most of the time it is set to false.

4. Is there any way to increase a number of pre-defined colors for series?
I add series to the chart without setting colors, the first twenty lines have different colors, but all the next are red.
I would like to add more pre-defined colors.

5.What are license terms for the Lite version?

Thanks


Tomek

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Tue Feb 12, 2008 10:13 am

Hi Tomek,

Please find below the answers to your questions:

1. Yes, this is possible using LegendScrollBar tool. This is only available in TeeChart for .NET v2 Pro. TeeChart tools are not available in the Lite version. You'll find an example of this at All Features\Welcome!\Tools\Legend ScrollBar in the features demo, available at TeeChart's program group.

2. You could try doing something like this:

Code: Select all

			Bitmap bmp = tChart1.Bitmap;
			tChart2.Axes.Left.Labels.CustomSize = tChart1.Axes.Left.Labels.Size
3. You should use DateTimeFormat as shown in Tutorial 4 - Axis Control. You'll find the tutorials at TeeChart's program group.

4. I'm afraid this is not possible unless you own a sourcecode license and customize the code to fit your needs. Another option would be assigning each series Color property after having added it, for example:

Code: Select all

			line1.Color = Color.Red;


5. You can find them at License.txt included with the Lite version installation and it's very similar to what's described here.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

mash
Newbie
Newbie
Posts: 4
Joined: Tue Oct 31, 2006 12:00 am

Post by mash » Tue Feb 12, 2008 1:22 pm

Narcis,

Thanks for Your help, please find my comments and replies below:


Ad1
I did not find the "All Features\Welcome!\Tools\Legend ScrollBar" in me demo application.
The only related is the "All Features\Welcome !\Miscellaneous\Legend\Scrolling legend"
But I Understand that this is available only in the Pro version.


Ad2
The Size property has always zero value in my application.
Although there are some values on the chart both Axes.Left.Labels.Size.Width and Axes.Left.Labels.Size.Height are always 0.
Is there something else that I should set or check?

Ad3 Ad4 Ad5
Thanks That was what I needed!


regards
Tomek

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Tue Feb 12, 2008 1:48 pm

Hi Tomek,
Ad1
I did not find the "All Features\Welcome!\Tools\Legend ScrollBar" in me demo application.
The only related is the "All Features\Welcome !\Miscellaneous\Legend\Scrolling legend"
But I Understand that this is available only in the Pro version.
Which TeeChart version are you using? If I remember correctly LegendScrollBar tool was implemented for TeeChart for .NET v2.

Ad2
The Size property has always zero value in my application.
Although there are some values on the chart both Axes.Left.Labels.Size.Width and Axes.Left.Labels.Size.Height are always 0.
Is there something else that I should set or check?


Have you tried calling the Bitmap method or tChart1.Draw() before as in the example code I posted?
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

mash
Newbie
Newbie
Posts: 4
Joined: Tue Oct 31, 2006 12:00 am

Post by mash » Wed Feb 13, 2008 7:32 am

Hi Narcis,

I am using TeeChart Pro .Net v2 2.0.2263.29186 Lite version.
That is probably why I do not have the Draw() method and the Bitmap property in my TChart object
Compiler output:
Error 1 'Steema.TeeChart.TChart' does not contain a definition for 'Draw'
Error 2 'Steema.TeeChart.TChart' does not contain a definition for 'Bitmap'


Thanks

Tomek

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Wed Feb 13, 2008 10:33 am

Hi Tomek,

Yes, this is most likely because the Lite version doesn't support exporting TeeChart to an image. Anyway you could try using Invalidate() method then.

At our client records I can see your company holds a TeeChart for .NET v2 Professional license. You could try using latest v2 Pro version and then checking what works in the Lite version and what not.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

mash
Newbie
Newbie
Posts: 4
Joined: Tue Oct 31, 2006 12:00 am

Post by mash » Wed Feb 13, 2008 10:55 am

Narcis,
OK I will.
Big thanks, for Your support!

Tomek

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Wed Feb 13, 2008 11:07 am

Hi Tomek,

You're very welcome!
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply