Thumbnail of TChart

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
icecream
Newbie
Newbie
Posts: 20
Joined: Thu Aug 07, 2008 12:00 am

Thumbnail of TChart

Post by icecream » Thu Mar 17, 2016 12:06 pm

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.

Christopher
Guru
Posts: 1603
Joined: Fri Nov 15, 2002 12:00 am

Re: Thumbnail of TChart

Post by Christopher » Fri Mar 18, 2016 10:02 am

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.
In which environment are you working? Windows forms, WPF, ASP.NET?
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

icecream
Newbie
Newbie
Posts: 20
Joined: Thu Aug 07, 2008 12:00 am

Re: Thumbnail of TChart

Post by icecream » Fri Mar 18, 2016 10:06 am

Win forms. TeeChart v3.5.

Christopher
Guru
Posts: 1603
Joined: Fri Nov 15, 2002 12:00 am

Re: Thumbnail of TChart

Post by Christopher » Fri Mar 18, 2016 12:33 pm

icecream wrote:Win forms. TeeChart v3.5.
You could try something like this:

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

Post Reply