Filled Contours. Does It Work?

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Dave
Advanced
Posts: 139
Joined: Mon Sep 22, 2008 12:00 am

Filled Contours. Does It Work?

Post by Dave » Tue Dec 06, 2011 11:18 am

Hi there

Currently we use the contour chart and it works well .However we'd like to be able to fill the contours with different colours depending on the value. I understand this function was under development a while back. Does anyone know if this function has been implemented yet.

FYI. Our .NET TeeChart version is version 3


Thanks.

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: Filled Contours. Does It Work?

Post by Sandra » Tue Dec 06, 2011 1:15 pm

Hello Dave,


Ok. I can check next code in last version 2011 of TeeChart.Net and seems that ColoEach works fine:

Code: Select all

private void InitializeChart()
        {
            tChart1.Aspect.View3D = false;
            Steema.TeeChart.Styles.Contour Contour1 = new Steema.TeeChart.Styles.Contour(tChart1.Chart);
            Contour1.FillSampleValues();
            Contour1.FillLevels = true;
            Contour1.ColorEach=true;
            tChart1.Draw();
        }
But, previous code doesn't work in last version 3. The only solution as you have, if you use version 3, is set property UsesColorRange = false and set UsesPalette property = true as do in next code:

Code: Select all

private void InitializeChart()
        {
            tChart1.Aspect.View3D = false;
            Steema.TeeChart.Styles.Contour Contour1 = new Steema.TeeChart.Styles.Contour(tChart1.Chart);
            Contour1.FillSampleValues();
            Contour1.FillLevels = true;
            Contour1.UsePalette = true;
            Contour1.UseColorRange = false;
        }
I hope will helps.

Thanks,
Best Regards,
Sandra Pazos / 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