Hi Team.
Im having a litle issue with the OnClickSeries event.
In some scenarios im using marks InsideSlice when using Pie charts or MarksLocation = mlStart when using bars and the problem is that the OnClickSeries is not fired if the end user click on the mark and not on the bar/slice. In some situations its critical due the mark surface (because long text) is bigger than the bar. In the attached screenshot, if i click arround the green area then im not able to fire the OnClickSeries event..any suggestion?
Thanks in advance.
OnClickSeries Vs Transparent
OnClickSeries Vs Transparent
- Attachments
-
- marks.JPG (29.13 KiB) Viewed 12954 times
Thanks, best regards.
Re: OnClickSeries Vs Transparent
Hello,
Try using the Chart OnClick event instead:
Try using the Chart OnClick event instead:
Code: Select all
Private Sub TChart1_OnClick()
Dim valueIndex As Integer
valueIndex = TChart1.Series(0).Clicked(TChart1.MousePosition.X, TChart1.MousePosition.Y)
If (valueIndex > -1) Then
MsgBox "series clicked"
End If
End Sub
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: OnClickSeries Vs Transparent
Thanks Yeray.
It seems to work but i still need to grab the SeriesIndex and ValueIndex.
I can get SeriesIdex from OnMouseEnterSeries and keep it in a global var but i cant see how to get the ValueIndex.
Thanks
It seems to work but i still need to grab the SeriesIndex and ValueIndex.
I can get SeriesIdex from OnMouseEnterSeries and keep it in a global var but i cant see how to get the ValueIndex.
Thanks
Thanks, best regards.
Re: OnClickSeries Vs Transparent
Hi aGain..
Sorry, forget about my last post..it was already in your sample code.
Thanks again.
Sorry, forget about my last post..it was already in your sample code.
Thanks again.
Thanks, best regards.
Re: OnClickSeries Vs Transparent
Hi Yeray.
It works good for me. Issue fixed.
Thanks, have a good weekend.
Alberto.
It works good for me. Issue fixed.
Thanks, have a good weekend.
Alberto.
Thanks, best regards.