Page 1 of 1
Issue with OnClickSeries Event and ColorEachPoint in Pie Chart
Posted: Thu Jun 20, 2024 1:10 pm
by 16698092
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!
Re: Issue with OnClickSeries Event and ColorEachPoint in Pie Chart
Posted: Thu Jun 20, 2024 2:03 pm
by Pep
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!
Re: Issue with OnClickSeries Event and ColorEachPoint in Pie Chart
Posted: Wed Jun 26, 2024 3:30 pm
by 16698092
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
Re: Issue with OnClickSeries Event and ColorEachPoint in Pie Chart
Posted: Sat Jun 29, 2024 7:40 pm
by Pep
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,
Re: Issue with OnClickSeries Event and ColorEachPoint in Pie Chart
Posted: Tue Jul 09, 2024 7:34 am
by 16698092
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.
Re: Issue with OnClickSeries Event and ColorEachPoint in Pie Chart
Posted: Wed Jul 10, 2024 7:48 am
by Pep
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 ?