yasso

How to display a lable on vLine

Recommended Posts

Hello,

 

maybe a simple question but I cannot find an answer for it. I searched the forum and found similar topics but none does really address my request.

 

 

 

I have a Line Chart and in it I added 4 vLines (see attached). I would like to be able to display a label to each of the vLines. I tried the following insdie the vLine tag:

 

 

 

labelpostion='1' label='MyLabel'

 

 

 

but nothing shows up on the Chart

 

 

 

Can anyone please help.

 

 

 

Thank you.

post-8855-128441584759_thumb.gif

Edited by Guest

Share this post


Link to post
Share on other sites

Hi,

I am afraid, I could not replicate the issue. :(

Could you please send us the XML file that you are using to render the chart,  as an attachment?

Share this post


Link to post
Share on other sites

Thanks for the reply, Sanjukta.

 

 

 

Attached is the XML file. Please note that I pull the data from MySQL with PHP. The actual xml file that PHP generates has over 350 lines. For simplicity I removed most of the lines and left enough to demonstrate what I have.

 

 

 

Your feedback is much appreciated.

lineChart_with_vLines.xml

Share this post


Link to post
Share on other sites
Guest Basundhara Ghosal

Hi,

We have tested the XML in our lab and is not able to replicate the issue as it seems to work fine.

Please take a look into the screen-shot (of the chart that we have rendered using your XML codes) that we are sending you as an attachment.

Hope this helps. :)

Line2D.zip

Share this post


Link to post
Share on other sites

Thanks for your effort. However, this is not what I am after. Apologies if I was not more specific.

 

 

 

See the example below (from FC docs). The horizental Trend line (Target) is exactly what I am looking for in my Line chart, however, in vertical format.

 

 

 

 

 

trend_line.gif

 

 

 

Here is what I would like to have as a result:

 

 

 

line_chart.gif

 

 

 

 

 

Is this possible?

 

 

 

Thank you!

Share this post


Link to post
Share on other sites

Thanks for the reply.

 

 

 

< vLine label='myLabel' labelPosition='1' />

 

 

 

is exactly what I have been trying. Also noted that in my original post, however it is not working. I get the vLine but I don't get the label. Does it have to do with the version of FC I am using? Do I need to adjust any other settings or add any other pieces of codes in other tags?

 

 

 

Thanks

Share this post


Link to post
Share on other sites
Guest Basundhara Ghosal

Hi,

Could you please send us the sample code that you are using?

Awaiting your reply.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now