Search found 8 matches

by rtech
Tue Nov 09, 2021 1:15 pm
Forum: VCL
Topic: EMF Optimisation for charts
Replies: 9
Views: 8097

Re: EMF Optimisation for charts

Thanks for the example I still can't reproduce your example. Simple code: __fastcall TForm1::TForm1(TComponent* Owner) : TForm(Owner) { dynamic_cast<TGDIPlusCanvas *>(Chart1->Canvas)->AntiAlias = false; Chart1->Axes->FastCalc = true; Chart1->Hover->Visible = false; samplingFun = new TDownSamplingFun...
by rtech
Tue Nov 09, 2021 12:28 pm
Forum: VCL
Topic: EMF Optimisation for charts
Replies: 9
Views: 8097

Re: EMF Optimisation for charts

It doesn't seem that TDownSampling function works if series have more than 15000 of points.
Adn how can i use function without second series?
by rtech
Mon Nov 08, 2021 12:31 pm
Forum: VCL
Topic: EMF Optimisation for charts
Replies: 9
Views: 8097

Re: EMF Optimisation for charts

Thanks for the link. I've tried to use TDownSampleFunction before metafile creation and i can't see any difference. Code example is here: TDownSamplingFunction *samplingFun = new TDownSamplingFunction(chart); for(size_t i = 0; i < chart->SeriesCount(); i++) { auto ser = dynamic_cast<TFastLineSeries ...
by rtech
Mon Nov 08, 2021 9:58 am
Forum: VCL
Topic: EMF Optimisation for charts
Replies: 9
Views: 8097

Re: EMF Optimisation for charts

Thanks for the answer, We've already use almost all of tips like DrawAllPoints = false and others from reply. Can you please give as correct link for this: Implement as tips as possible from the ones explained in the Real-time Charting article here. and more detailed example of TDownSampleFunction(l...
by rtech
Wed Nov 03, 2021 12:29 pm
Forum: VCL
Topic: EMF Optimisation for charts
Replies: 9
Views: 8097

EMF Optimisation for charts

Hello. We use Rad Studio 10.4.1 and teechart 2020.30 for c++. We need to export charts (fastline and line series) in EMF format in reports (Fast report 6). In report we use TfrxPictureView component for chart output. example of exporting code: const int width = static_cast<int>( pictureView->Width )...
by rtech
Thu May 06, 2021 2:21 pm
Forum: VCL
Topic: Strange zooming behaviour
Replies: 1
Views: 5433

Strange zooming behaviour

Hello.

How can i limit chat zoom with the mouse?
Then I zoomed about 24 times, I have only horizontal line. If i try to zoom in again only one point remains. Line can be vertical as well.

First image - test line on chart
Secons - line after 20+ zooms
Third - the last zoom
by rtech
Thu May 06, 2021 7:08 am
Forum: VCL
Topic: Area series with two colours
Replies: 3
Views: 6722

Re: Area series with two colours

Have you assigned your OnAfterAddPoint method to the series OnAfterAdd event? Yes, i've done it in my create series code: TChartSeries *MyFlowRateRectangleSeries::CreateNewSeries() { auto NewSeries = MyAreaSeries::CreateNewSeries(); NewSeries->OnAfterAdd = OnAfterAddPoint; return NewSeries; } But w...
by rtech
Wed Apr 28, 2021 7:22 am
Forum: VCL
Topic: Area series with two colours
Replies: 3
Views: 6722

Area series with two colours

Hello, I need area series with two colours. One for negative and one for positive areas. (See attached screenshot for details) I've done that by using OnAfterAdd: void __fastcall MyFlowRateRectangleSeries::OnAfterAddPoint(TChartSeries *Sender, int ValueIndex) { if(Sender->YValues->Value[ValueIndex] ...