IDownSamplingFunction for decimal x values
Posted: Thu Dec 03, 2009 1:45 pm
Hi,
I am using TeeChart pro V8.0.0.6 Version v Active x, underC++
I am trying to limit thenumber of points dispalyed by using IDownSamplingFunction with the dsMinMax method:
m_Chart.Series(1).SetFunction(tfDownSampleFun);
m_Chart.Series(1).GetFunctionType().GetAsDownSampling().SetDownSampleMethod(dsMinMax);
m_Chart.Series(1).GetFunctionType().GetAsDownSampling().SetTolerance(10);
m_Chart.Series(1).SetDataSource(COleVariant("Series0"));
The probelm is that my X axis has decimal values lower than 1. The SetTolerance() accepts only integers. I understand that SetTolerance() limts the number of points by a range defined on the X axis, so how do I do it for a range lower than 1?
Is there a way to reduce the number of points used by defining on how many points will the dsMinMax operate instead of a range?
I read the topic "problems with the downsample function". Will the DisplayedPointCount property help?
I didn't find Set or Get for this property in version v8.0.0.6 and not in v8.0.0.7 which I just downloaded.
Thanks
I am using TeeChart pro V8.0.0.6 Version v Active x, underC++
I am trying to limit thenumber of points dispalyed by using IDownSamplingFunction with the dsMinMax method:
m_Chart.Series(1).SetFunction(tfDownSampleFun);
m_Chart.Series(1).GetFunctionType().GetAsDownSampling().SetDownSampleMethod(dsMinMax);
m_Chart.Series(1).GetFunctionType().GetAsDownSampling().SetTolerance(10);
m_Chart.Series(1).SetDataSource(COleVariant("Series0"));
The probelm is that my X axis has decimal values lower than 1. The SetTolerance() accepts only integers. I understand that SetTolerance() limts the number of points by a range defined on the X axis, so how do I do it for a range lower than 1?
Is there a way to reduce the number of points used by defining on how many points will the dsMinMax operate instead of a range?
I read the topic "problems with the downsample function". Will the DisplayedPointCount property help?
I didn't find Set or Get for this property in version v8.0.0.6 and not in v8.0.0.7 which I just downloaded.
Thanks