• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

vertical text ish, prob with charting

Explorer ,
Feb 07, 2008 Feb 07, 2008

Copy link to clipboard

Copied

Hello All,
Firstly you might tell me to bugger off since im using Bluedragon and not CF (CF 7 would get rid of my problem) so any how im trying to create a work around.

OK here goes:

I have a CFCHART (all works great)

The parameter in ;
CFCHARTDATA item='data label here'
always renders as horizontal on the data labels, in CF 7 you can use a style sheet to customise this attribute to render vertically I believe the value is something like;

CFCHARTDATA item='data label here'
labelstyle isHideOverlapped TRUE orientation=Horizontal

Ok but I dont have this luxory in Bluedragon, but I have noticed I can get vertical text if I preset a variable like below.

CFSET dataname = 'JOE'
(if I use this as my item parameter
CFCHARTDATA item= dataname
I get horizontal text as you would exspect.


CFSET dataname = '
J
O
E
'

If I use the dataname variable set like above I get nice Vertical Text.

So I thought Im on a roll here, I have been trying to work out some loop to just format my datanames like above but I cant work it out. any ideas.

Or my other metod would be to somehow set the dataname variable against a CSS stlye.

I can set a stlye up in the header and then Is it possible to apply that class stlye against a variable?

these are the two work arounds im trying but Im not having much success.

Any one got any ideas pleaase

Kind Regards Guy

Sorry messed up attaching code etc, been a long day so far.



TOPICS
Advanced techniques

Views

316

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Explorer , Feb 07, 2008 Feb 07, 2008
Worked it out

I loop the text I want as the Data Labels and create a text string like below then just pass this to the item parameter in CFCHARTDATA.

If I want the data label to be JOE BLOGGS but vertically

I creat a variable that is like below (I did not realise you can pass CRs through variables like this)

Votes

Translate

Translate
Explorer ,
Feb 07, 2008 Feb 07, 2008

Copy link to clipboard

Copied

Ignor this I was questioning about my symbols but I have already noticed the attach Code button

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Feb 07, 2008 Feb 07, 2008

Copy link to clipboard

Copied

LATEST
Worked it out

I loop the text I want as the Data Labels and create a text string like below then just pass this to the item parameter in CFCHARTDATA.

If I want the data label to be JOE BLOGGS but vertically

I creat a variable that is like below (I did not realise you can pass CRs through variables like this)

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Feb 07, 2008 Feb 07, 2008

Copy link to clipboard

Copied

If I dumped a set of text to a file how would you trigger a CR in the line of text.

can you get htlm to execute as you are dumping to a file or variable

e.g. my attach code thing is not working so I replaced GT and LT for ' ' to show html code.

The cat 'BR' jumped over 'BR' the fence.

would be dumped to a file like

The cat
Jumped over
the fence


Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation