Bubble Chart Labels

TeeChart for ActiveX, COM and ASP
Post Reply
Productivity Guy
Newbie
Newbie
Posts: 21
Joined: Tue Mar 01, 2005 5:00 am
Location: Spokane, WA
Contact:

Bubble Chart Labels

Post by Productivity Guy » Thu Nov 08, 2007 6:05 pm

In another thread, I found this:
The AddBubble method appends a new Bubble point to the Series Points List. The Bubble point is assigned to be at AX,AY coordinates and have ARadius, Label and Color parameters. The Label parameter is used to draw Axis Labels, Bubble Marks and Legend.
So, the Label parameter sets the labels for the X axis, Legend, and Bubble Marks, right?

But, I need the X Value to show up on the X Axis -- separately from the Label.

For example, let's say I'm using a bubble chart to show Department Sales. The Y Axis is Sales Dollars. The X Axis is Number of Employees in the Department. I want the X axis to show the number of employees (as a scale). But, I want to be able to identify the bubble by the Department Name.

So, my original thought was to use the department name as the Label param, thinking the X values would show in the X Axis (which seems logical, to me). But, instead, the Label shows there. How can I force the X values to the X axis while still giving me the ability to associate the department with the bubble. (I need to show the department name on bubble click.)

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Mon Nov 12, 2007 9:44 am

Hi Productivity Guy,

You can change axes labels style like this:

Code: Select all

TChart1.Axis.Bottom.Labels.Style = talValue
For further information please read Tutorial 4 - Axis Control.

Hope this helps!
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Productivity Guy
Newbie
Newbie
Posts: 21
Joined: Tue Mar 01, 2005 5:00 am
Location: Spokane, WA
Contact:

Post by Productivity Guy » Tue Nov 13, 2007 6:46 pm

Thanks. That works. Now, I just can't figure out how to get access to the Label property when clicking the bubble.

Productivity Guy
Newbie
Newbie
Posts: 21
Joined: Tue Mar 01, 2005 5:00 am
Location: Spokane, WA
Contact:

Post by Productivity Guy » Tue Nov 13, 2007 7:02 pm

I found it:

TChart1.Series(SeriesIndex).PointLabel(ValueIndex)

Post Reply