Jump to content
Software FX Community

Align labels to x-axis


User (Legacy)
 Share

Recommended Posts

cfx.ClearData CD_VALUES

I am trying to align my labels with the x-axizs with the example that was

given in the post "y axis Align with labels, how to?"

It works great when I use a recordset as the data source but when I use an

array nothing happens.

Here is my code:

cfx.Axis(AXIS_Y).Style = cfx.Axis(AXIS_Y).Style Or AS_CENTERED

cfx.Axis(AXIS_X).Style = cfx.Axis(AXIS_X).Style Or AS_CENTERED

cfx.OpenDataEx COD_VALUES, UBound(arrChartData, 1), UBound(arrChartData,

2)

For lngRowCnt = 0 To UBound(arrChartData, 1) - 1

cfx.Series(lngRowCnt).Legend = arrChartData(lngRowCnt, 0)

Next lngRowCnt

For lngRowCnt = 1 To UBound(arrChartData, 1)

For lngColCnt = 1 To UBound(arrChartData, 2)

cfx.Axis(AXIS_X).Label(lngColCnt - 1) = arrChartData(0, lngColCnt)

cfx.ValueEx(lngRowCnt - 1, lngColCnt - 1) =

IIf(IsNull(arrChartData(lngRowCnt, lngColCnt)), 0, arrChartData(lngRowCnt,

lngColCnt))

Next lngColCnt

Next lngRowCnt

cfx.CloseData COD_VALUES

I tried putting:

cfx.Axis(AXIS_Y).Style = cfx.Axis(AXIS_Y).Style Or AS_CENTERED

cfx.Axis(AXIS_X).Style = cfx.Axis(AXIS_X).Style Or AS_CENTERED

in multiple places but nothing works. Any ideas?

Thanks

Daniel Reber

Datamasters, Inc

Attachments.zip

Link to comment
Share on other sites

I want all of the x-axis labels to be aligned with it's points (correct

term?) Right now if the labels don't fit horizontally then the rest are not

displayed. I want all of the labels to be displayed.

"SoftwareFX Support" <support@softwarefx.com> wrote in message

news:wAlB1THSCHA.1060@webserver1.softwarefx.com...

> What do you want to get ? what are you getting ?

>

> --

> FP

> Software FX, Inc.

>

>

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...