Issue with OnClickSeries Event and ColorEachPoint in Pie Chart

TeeChart for ActiveX, COM and ASP
Post Reply
Newbie
Newbie
Posts: 3
Joined: Mon May 20, 2024 12:00 am

Issue with OnClickSeries Event and ColorEachPoint in Pie Chart

Post by » Thu Jun 20, 2024 1:10 pm

I have a problem with pie charts width release 2024 ActiveX + Powerbuilder .
- OnClickSeries Event Not Triggering: I have set up an OnClickSeries event for my pie chart, but it does not seem to trigger when I click on any of the slices. I have verified other chart type work.
- ColorEachPoint Not Applying: Despite setting ColorEachPoint = true, the slices of the pie chart are not displaying in different colors. All slices appear in the red color.

Thank you in advance for your support!

Pep
Site Admin
Site Admin
Posts: 3296
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Re: Issue with OnClickSeries Event and ColorEachPoint in Pie Chart

Post by Pep » Thu Jun 20, 2024 2:03 pm

Hello,

we're not very experienced in Powerbuilder, but it should work in same way as for example in VB.
Does this happens to you only with the latest version ?
In any case, would you be so kind to send us a demo sample with which we can reproduce the problem as is here please?

best regards!

Newbie
Newbie
Posts: 3
Joined: Mon May 20, 2024 12:00 am

Re: Issue with OnClickSeries Event and ColorEachPoint in Pie Chart

Post by » Wed Jun 26, 2024 3:30 pm

I cannot send an example, but I found that the issue where the OnClickSeries event is no triggered occurs
after loading the style file with the instruction
ole_graf.object.Import.LoadFromStream(....)

it works correctly with version 5 and with other types of charts

Pep
Site Admin
Site Admin
Posts: 3296
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Re: Issue with OnClickSeries Event and ColorEachPoint in Pie Chart

Post by Pep » Sat Jun 29, 2024 7:40 pm

Hello,
perfect, thanks for the information.
In that case, a workaround would be to assign again the onClickSeries event after the call LoadFromStream method at the moment.
Does this works for you ?

best regards,

Newbie
Newbie
Posts: 3
Joined: Mon May 20, 2024 12:00 am

Re: Issue with OnClickSeries Event and ColorEachPoint in Pie Chart

Post by » Tue Jul 09, 2024 7:34 am

Thank you for your suggestion. However, the issue is not about executing the click event at the end of the LoadFromStream method. The problem is that the OnClickSeries event should trigger when I actually click on the pie chart slices.

Pep
Site Admin
Site Admin
Posts: 3296
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Re: Issue with OnClickSeries Event and ColorEachPoint in Pie Chart

Post by Pep » Wed Jul 10, 2024 7:48 am

Hello,

this seems to be a specific issue on PowerBuilder, onClickSeries event does work fine on VB project here.
Does the OnMouseDown event works for you ?

Post Reply