Hi, is it possible to catch events for clicking on the labels for
a series (the value/name on the y-axis)?
Regards
/Jakob
Click event for Label ?
Hi Jakob,
I've post one example which show you how to do this in VB.Net (WebApplication) to the steema.public.attachments newsgroup.
Hope that help you.
I've post one example which show you how to do this in VB.Net (WebApplication) to the steema.public.attachments newsgroup.
Hope that help you.
Pep Jorge
http://support.steema.com
http://support.steema.com
Hi Jakob,
steema.public.attachments newsgroup.
You can find it at: news://www.berneda.com
If you're not able to connect with that post an email address here and I'll send it directly to you.
steema.public.attachments newsgroup.
You can find it at: news://www.berneda.com
If you're not able to connect with that post an email address here and I'll send it directly to you.
Pep Jorge
http://support.steema.com
http://support.steema.com
Hi. I have looked at this sample, but it handles marks instead of labels.
I am trying to solve this by implementing the onClickBackground event, but the problem is that when I get there, the Labels collection of my axis is empty?
What am I doing wrong?
Regards
/Jakob
I am trying to solve this by implementing the onClickBackground event, but the problem is that when I get there, the Labels collection of my axis is empty?
Code: Select all
private void onClickBackground(object sender, ImageClickEventArgs e)
{
foreach( AxisLabelItem li in tChart1.Axes.Left.Labels.Items)
{
if( li.ShapeBounds.Contains(e.X, e.Y) )
{
.....
Regards
/Jakob
-
- Site Admin
- Posts: 1349
- Joined: Thu Jan 01, 1970 12:00 am
- Location: Riudellots de la Selva, Catalonia
- Contact:
Hi Jacob,
All Features -> Welcome! -> Axes -> Labels -> Custom Labels.
To use your technique you would have to populate your Left Axis with Custom Labels.
I will add a ClickAxisLabel event to the wishlist of the TeeChart for .NET component.
Well, AxisLabelItem is used for Custom Labels, no default labels, as can be seen in the Feature Demo under:What am I doing wrong?
All Features -> Welcome! -> Axes -> Labels -> Custom Labels.
To use your technique you would have to populate your Left Axis with Custom Labels.
I will add a ClickAxisLabel event to the wishlist of the TeeChart for .NET component.
Thank you!
Christopher Ireland (Steema crew)
Please be aware of the newsgroup archives:
http://www.teechart.net/support/search.php
http://groups.google.com
http://codenewsfast.com/
Christopher Ireland (Steema crew)
Please be aware of the newsgroup archives:
http://www.teechart.net/support/search.php
http://groups.google.com
http://codenewsfast.com/
-
- Site Admin
- Posts: 1349
- Joined: Thu Jan 01, 1970 12:00 am
- Location: Riudellots de la Selva, Catalonia
- Contact:
Hi Jacob,
You can get this to work by setting the AxisLabelItem to Transparent = false, e.g.I have tried this, I added custom labels to my left axis, and in the onClickBackground event, I can find the labels.
However: The ShapeBounds property of the label items are always 0, so how can I find out which one that was clicked?
Code: Select all
tChart1.Axes.Left.Labels.Items.Add(50, "HELLO");
Steema.TeeChart.AxisLabelItem tLabel1 = tChart1.Axes.Left.Labels.Items[0];
tLabel1.Transparent = false;
tLabel1.Pen.Visible = false;
tLabel1.Brush.Visible = false;
Thank you!
Christopher Ireland (Steema crew)
Please be aware of the newsgroup archives:
http://www.teechart.net/support/search.php
http://groups.google.com
http://codenewsfast.com/
Christopher Ireland (Steema crew)
Please be aware of the newsgroup archives:
http://www.teechart.net/support/search.php
http://groups.google.com
http://codenewsfast.com/