Fill with color the zone between the graph and horizontal 0
Fill with color the zone between the graph and horizontal 0
Hello,
How to fill with color the zone between the graph and horizontal "0" ?
I've done a picture to be more precis (green serie):
http://www.xoogle.org/GRAPH-DIFF.gif
Note : I use Custom Axes...
Cordially,
Rodrigue
How to fill with color the zone between the graph and horizontal "0" ?
I've done a picture to be more precis (green serie):
http://www.xoogle.org/GRAPH-DIFF.gif
Note : I use Custom Axes...
Cordially,
Rodrigue
Hi Rodrigue,
you could use one ColorBand Tool for the left Axis (see Help for details).
you could use one ColorBand Tool for the left Axis (see Help for details).
Pep Jorge
http://support.steema.com
http://support.steema.com
Hello,
I don't understand why you ask me to use a ColorBand tool... It's just a rectangle, no ?
I've used a TAreaSerie to solve my problem but I've a lot of point to display (~30000). Is it a way to only draw the point necessary (like the DrawAllPoints property available in TFastLineSerie).
Thanks in advance!
Cordially,
Rodrigue
I don't understand why you ask me to use a ColorBand tool... It's just a rectangle, no ?
I've used a TAreaSerie to solve my problem but I've a lot of point to display (~30000). Is it a way to only draw the point necessary (like the DrawAllPoints property available in TFastLineSerie).
Thanks in advance!
Cordially,
Rodrigue
Hi.
Yes, you can use area or even high-low series to fill the area. But you'll have to manually calculate reduction points and pass them to series. Perhaps you can even use the reduction algorithm we used in TDownSamplingFunction (see TeeChart demo to see it in action).
Yes, you can use area or even high-low series to fill the area. But you'll have to manually calculate reduction points and pass them to series. Perhaps you can even use the reduction algorithm we used in TDownSamplingFunction (see TeeChart demo to see it in action).
Marjan Slatinek,
http://www.steema.com
http://www.steema.com
I'm using C++ Builder 6.
I try to to do this :
but TDownSamplingFunction is an unknow type.
Have an idea ? What file should I include ?
I don't find the example you've said. The find function in your example application doesn't work for me...
Cordially,
Rodrigue
I try to to do this :
Code: Select all
TDownSamplingFunction* DS = new TDownSamplingFunction(Chart);
...
Have an idea ? What file should I include ?
I don't find the example you've said. The find function in your example application doesn't work for me...
Cordially,
Rodrigue
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Rodrigue,
Regarding the example I've seen it is not implemented in the BCB demo, however it's in the Delphi one which you can download here. You should browse All Features\Welcome!\ Functions\Extended\Reducing number of points.
You should include TeeDownSampling.hpp.Have an idea ? What file should I include ?
Yes, you are right. It is a known problem and we will try to solve it for future releases.I don't find the example you've said. The find function in your example application doesn't work for me...
Regarding the example I've seen it is not implemented in the BCB demo, however it's in the Delphi one which you can download here. You should browse All Features\Welcome!\ Functions\Extended\Reducing number of points.
Best Regards,
Narcís Calvet / 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 |
Hello,
I've yet an another problem : I don't find how to delete the object TDownSamplingFunction without generate an exeption !
Here is my code :
And when I repaint an another serie or when the window is closed, the following code are executed :
An exception is generated ! May be I'm doing something wrong ...
TIA
Cordially,
Rodrigue
I've yet an another problem : I don't find how to delete the object TDownSamplingFunction without generate an exeption !
Here is my code :
Code: Select all
serie = new TAreaSeries((TChart *)Chart);
DownSampling = new TDownSamplingFunction((TChart *)Chart);
serie_temp = new TAreaSeries((TChart *)Chart);
/*=============
=== Données ===
=============*/
serie_temp->FillSampleValues(30000);
serie->SetFunction(DownSampling);
DownSampling->Tolerance = 10;
DownSampling->DownSampleMethod = dsAverage; /*dsDouglas - the Douglas-Peucker simplification algorithm
dsMax - group of points are replaced with group maximum value
dsMax - group of points are replaced with group minimum value
dsMinMax - group of points are replaced with (two points!) group minimum AND
maximum value
dsAverage - group of points are replaced with group average value*/
Chart->AddSeries(serie);
serie->DataSource = serie_temp;
serie->VertAxis = aLeftAxis;
serie->HorizAxis = aBottomAxis;
Code: Select all
//...
if(DownSampling) delete DownSampling;
TIA
Cordially,
Rodrigue
Hi.
I think you have to disconnect function from serie prior to deleting it (to avoid av later when serie values are recreated):
I think you have to disconnect function from serie prior to deleting it (to avoid av later when serie values are recreated):
Code: Select all
serie->SetFunction(NULL);
delete DownSampling;
Marjan Slatinek,
http://www.steema.com
http://www.steema.com
Ok, I must delete TDownSamplingFunction object in first. And only after do setfunction(NULL).
When I zoom, I need a better resolution. I was thinking that put Tolerance to 1 will only display the "average pixel" (with DownSamplingMethod = dsAverage) on the screen independently of the factor of zoom
I've tried to put Tolerance=1 in the OnZoom Event but it doesn't work also
TIA,
Cordially,
Rodrigue
When I zoom, I need a better resolution. I was thinking that put Tolerance to 1 will only display the "average pixel" (with DownSamplingMethod = dsAverage) on the screen independently of the factor of zoom
I've tried to put Tolerance=1 in the OnZoom Event but it doesn't work also
TIA,
Cordially,
Rodrigue
Hi Rodrigue,
I've tried to change the Tolerance in the OnZoom event here and it works fine. Could you please send me a simple sample directly to my mail (pep@steema.com) with which I can reproduce the problem ? Have you tried to call the CheckDataSource() method after the Tolerance has been modified ?When I zoom, I need a better resolution. I was thinking that put Tolerance to 1 will only display the "average pixel" (with DownSamplingMethod = dsAverage) on the screen independently of the factor of zoom
I've tried to put Tolerance=1 in the OnZoom Event but it doesn't work also
Pep Jorge
http://support.steema.com
http://support.steema.com