How do I label points on a 2D chart?
Posted: Wed Jun 28, 2006 7:50 am
I have the following example data points.
X = 3.7% Y = 2.7% Label = Fixed Income
X = 4.9% Y = 3.7% Label = Income
X = 6.5% Y = 4.2% Label = Yield
X = 9.9% Y = 5.3% Label = Balanced
X = 12.6% Y = 6.1% Label = Growth
X = 15.0% Y = 6.6% Label = Equity
I'd like to plot them so that
a) The labels show on the chart
b) The X and Y axis to be uniform as the points are not equally spaced
c) Plot the chart with and without lines connected them.
d) If lines are connecting the points, is it possible to smooth them.
Ploting the points is straightforward but I don't know how to place the lables on the chart or find any way of assigning the labels so they appear as Marks on the chart. Is there a way of attaching the labels to the series or the point itself so that I can query the values also by clicking on them.
Can anyone help with a code snippet in VB6?
Thanks in advance.
Nav
X = 3.7% Y = 2.7% Label = Fixed Income
X = 4.9% Y = 3.7% Label = Income
X = 6.5% Y = 4.2% Label = Yield
X = 9.9% Y = 5.3% Label = Balanced
X = 12.6% Y = 6.1% Label = Growth
X = 15.0% Y = 6.6% Label = Equity
I'd like to plot them so that
a) The labels show on the chart
b) The X and Y axis to be uniform as the points are not equally spaced
c) Plot the chart with and without lines connected them.
d) If lines are connecting the points, is it possible to smooth them.
Ploting the points is straightforward but I don't know how to place the lables on the chart or find any way of assigning the labels so they appear as Marks on the chart. Is there a way of attaching the labels to the series or the point itself so that I can query the values also by clicking on them.
Can anyone help with a code snippet in VB6?
Thanks in advance.
Nav