Page 1 of 1

Bubble Chart Labels

Posted: Thu Nov 08, 2007 6:05 pm
by 9526113
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.)

Posted: Mon Nov 12, 2007 9:44 am
by narcis
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!

Posted: Tue Nov 13, 2007 6:46 pm
by 9526113
Thanks. That works. Now, I just can't figure out how to get access to the Label property when clicking the bubble.

Posted: Tue Nov 13, 2007 7:02 pm
by 9526113
I found it:

TChart1.Series(SeriesIndex).PointLabel(ValueIndex)