Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MSChart pie, how to 'explode' slice programmatically
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01386478
Message ID:
01388585
Vues:
55
Hi Max,

I'm glad to know it solved your problem.
Infact, drawing the a 3d slice needs 6 drawing processes, when a plain slice needs only one call to Gdi+ for drawing purposes. This is the main reason for the difference of performance we noticed.

Apart from this, your Pie chart is not usual, because it has lots of slices ( more than 80), when, for the vast majority of cases, this quantity does not exceed 15 slices.

Thanks to you for the samples that helped me solving other issues in FoxCharts.

Regards

Cesar


>Hi Cesar,
>Just for public record here: the new files and making the pie chart plain made the solution run much faster.
>Thank you very much for your help and for your wonderful foxCharts class.
>
>>hi Max,
>>
>>Thanks a lot for the files.
>>I hope to test them by tomorrow.
>>
>>Anyway, would setting the property PieDetachAnimationSteps to the value 1 help you ?
>>
>>From the help file:
>>
>>
>>The quantity of steps that a slice of a pie or doughnut will take till full detachment
>>This is to be used for animation purposes.
>>The recommended and default setting for this property is 3 steps. That means that when you detach a slice of doughnut or pie interactively, the slice detached will appear in 3 different positions till it reaches the final definitive position.
>>Notice that the whole chart image will be redrawn on each step. So, if you increase too much this value, it may take a long and undesirable time till the slice is completely detached.
>>

>>
>>
>>Anyway, I'll make some tests with the samples you provided.
>>
>>Thanks !
>>
>>Cesar
>>
>>
>>>Cesar
>>>
>>>I just sent an email message from my hotmail account, it contains a zip file with samples and data and an explanation where I'm seeing problems.
>>>
>>>TIA
>>>
>>>Max
>>>
>>>>>Hi All
>>>>>
>>>>>I'm developing an small app for a customer and I'm using MSChart to create pie graphics.
>>>>>(I do have it solved with the VFPx FoxChars, very nice, but too slow rendering..., so back to the old OCXs).
>>>>>
>>>>>I have tried today (until now) to programatically 'explode' a pie slice without success.
>>>>>this should work:
>>>>>
>>>>>formtestchart.oChart.Plot.SeriesCollection(1).DataPoints(-1).offset = 90
>>>>>
>>>>>but it doesn't...
>>>>>
>>>>>I'm able to drag one or more slices from the pie chart when formtestchart.oChart.AllowSelections = .t., so the chart is able to do slice exploding or offset, how to do it programatically?
>>>>>
>>>>>TIA
>>>>>
>>>>>Max
>>>>
>>>>Hi Max,
>>>>
>>>>Can you better explain about the slow rendering of foxCharts ?
>>>>Pie or doughnut charts take from 0.15 to 0.35 seconds, when the image is really very big.
>>>>
>>>>Or were you having worse results than the above ?
>>>>
>>>>Hope to hear from you soon !
>>>>
>>>>Cesar
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform