Hi, I am wondering whether TChart has a feature to display a thumbnail (small copy) of the main (large) chart? The small one should reflect the changes of the large one.
Thanks.
Thumbnail of TChart
-
- Guru
- Posts: 1603
- Joined: Fri Nov 15, 2002 12:00 am
Re: Thumbnail of TChart
In which environment are you working? Windows forms, WPF, ASP.NET?icecream wrote:Hi, I am wondering whether TChart has a feature to display a thumbnail (small copy) of the main (large) chart? The small one should reflect the changes of the large one.
Thanks.
Best Regards,
Christopher Ireland / 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: Thumbnail of TChart
Win forms. TeeChart v3.5.
-
- Guru
- Posts: 1603
- Joined: Fri Nov 15, 2002 12:00 am
Re: Thumbnail of TChart
You could try something like this:icecream wrote:Win forms. TeeChart v3.5.
Code: Select all
private void InitializeChart()
{
tChart1.Aspect.View3D = false;
tChart1.Series.Add(typeof(Bar)).FillSampleValues();
}
private void button4_Click(object sender, EventArgs e)
{
Form thumbForm = new Form();
thumbForm.Size = new Size(200, 200);
thumbForm.Show(this);
TChart thumbChart = new TChart();
thumbChart.Dock = DockStyle.Fill;
thumbForm.Controls.Add(thumbChart);
MemoryStream stream = new MemoryStream();
tChart1.Export.Template.Save(stream);
stream.Position = 0;
thumbChart.Import.Template.Load(stream);
}
Best Regards,
Christopher Ireland / 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 |