Adding user define chart X labels

Knowledge exchange related to the VPE Report Engine and PDF Library

Moderator: IDEAL Software Support

Adding user define chart X labels

Postby Patrick » Tue Apr 27, 2010 8:11 pm

My first chart using VPE and it's looking good so far!

I can't seem to put my labels under each bar in the graph - I can only get 1 label to print for all 6 bars in the graph.

I set the x label state property to user defined:
#vpe.ChartXLabelState = 0

Then in a loop (which has a list with 2 fields: #II (number) and #GRADE (IE A, B, C...) there are 6 entries in this loop) I put:

INVOKE METHOD(#VPE.ChartDataAddValue) HDATA(#VPEHandle) COLUMN(#count) VALUE(#II)

INVOKE METHOD(#VPE.ChartDataAddXLabel) HDATA(#VPEHandle) XLABEL(#GRADE)

I see the 6 bars correctly according to the #II number field, but only 1 of my labels in the middle of the 6 bars (an A)?

How do I get the #GRADE variable under each bar?

Thank you,
Pat
VPE 6.0 Pro, XP SP3
Patrick
 
Posts: 23
Joined: Thu Mar 12, 2009 5:44 pm

Postby IDEAL Software Support » Wed Apr 28, 2010 10:59 am

Please contact our technical support for how-to questions and provide a more complete code sample. The code sample you provide is not sufficient to determine the problem.
IDEAL Software Support
 
Posts: 1622
Joined: Thu Nov 18, 2004 4:03 pm

Postby IDEAL Software Support » Tue May 04, 2010 10:22 am

Update: the user incremented the variable "count" in a loop, so he did not create multiple chart-data rows, but multiple columns.
IDEAL Software Support
 
Posts: 1622
Joined: Thu Nov 18, 2004 4:03 pm


Return to VPE Open Forum

Who is online

Users browsing this forum: Majestic-12 [Bot] and 63 guests