Page 1 of 1
Functions in Pocket.dll
Posted: Tue Oct 26, 2004 7:08 am
by 8119889
When trying to use a function in pocket.dll it throws an 'Invalid Cast Exception' when the function is assigned to the function property of a bar.
The exact same code works fine when copied into a Windows form project.
Are functions supported in Pocket and if so how do you implement them?
Posted: Fri Oct 29, 2004 10:01 am
by Chris
Hi Bernard,
Are functions supported in Pocket and if so how do you implement them?
Modifying the demo under:
C:\Program Files\Steema Software\TeeChart for .NET v1\Examples\Compact Framework
You can do:
Code: Select all
// Chart Title
tChart1.Header.Text="TeeChart PocketPC";
// Create horizontal bar series
horizBar1=new Steema.TeeChart.Styles.Line();
Steema.TeeChart.Styles.Line line2 = new Steema.TeeChart.Styles.Line();
Steema.TeeChart.Functions.Average average = new Steema.TeeChart.Functions.Average();
line2.Function = average;
line2.DataSource = horizBar1;
horizBar1.FillSampleValues();
horizBar1.ColorEach=true;
tChart1.Series.Add(horizBar1);
tChart1.Series.Add(line2);