New chart at runtime

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
rossmc
Newbie
Newbie
Posts: 57
Joined: Wed Apr 08, 2009 12:00 am

New chart at runtime

Post by rossmc » Wed Nov 11, 2009 12:26 pm

Hi

I need to be able to create a new instance of my chart at runtime. This is relatively straightforward in VB.NET by simply doing this:
Dim chart As New Steema.TeeChart.TChart
Me.Controls.Add(chart)

However this new instance has all the Steema defaults set, whereas my default chart is quite different. (Backcolour, borders, axes etc, etc)

Question is: is there a quick way to get my newly instantiated chart control to my defaults?

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

Re: New chart at runtime

Post by Narcís » Wed Nov 11, 2009 12:48 pm

Hi rossmc,

Yes, you can save your chart to a native TeeChart template (*.ten) or you can use custom themes. For more information on TeeChart templates please read Tutorial 12 - Exporting and Importing Charts. For custom themes please have a look at the All Features\Welcome !\Themes\Custom Themes example in the features demo. Tutorials and demo are available at TeeChart's program group.

Hope this helps!
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