Sign in to follow this  
jvf

Wrap Lines In Connectorlabels

Recommended Posts

Hello,

I'm using the dragnode chart in the javascript rendering mode with multiple nodes and connectors between them.

In flash the connector labels are wrapped if they have a long text, but in javascript these labels do not wrap and the connector labels are so much long.

Can I set the connector labels to wrap or set a width to the connector label? Maybe the font style for connector label?

Thanks,

John

Share this post


Link to post
Share on other sites

Hi John,

 

Apologies for delay.  :(

 

It is not possible to wrap labels of connectors for a Drag Node chart directly.

 

But as a workaround, you may use {br} inside your value for label so that you can wrap the contents of the label.

Eg.  <connector  .....  label='link12 - a connector {br} with a long label {br} that is wrapped manually' />

You may change the font style of the connector label by using "font" type of style.

 

Eg.  The following code changes the font face and size of all the connector labels in the chart.

 

<styles>
    <definition>
        <style name='MyFirstFontStyle' type='font' font='Arial' size='12' />
    </definition>

    <application>
        <apply toObject='CONNECTORLABELS' styles='MyFirstFontStyle' />
    </application>
</styles>

For more information on Font Style, you may please refer : http://docs.fusioncharts.com/powercharts/Contents/Styles/Font.html

 

Hope this helps.  :)

Edited by Haritha

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
Sign in to follow this