FusionCharts Forum: How To Show Custom Html In Fushion Chart Tool Tip - FusionCharts Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

How To Show Custom Html In Fushion Chart Tool Tip

#1 User is offline   anoopkumar 

  • Forum Newbie
  • Group: Members
  • Posts: 2
  • Joined: 12-January 12

Posted 12 January 2012 - 09:43 PM

Attached Image: tolltip.pngAttached Image: tolltip.pngI need to get a tool tip exactly like the image i have attach here with this post. Is there any way to get the piechart tooltip like this fushionchart 2d pie chart. Please respond immediately.

This post has been edited by anoopkumar: 12 January 2012 - 09:44 PM

0

Other Replies To This Topic

#2 User is offline   Bindhu 

  • Forum Guru
  • PipPipPipPipPipPip
  • Group: Members
  • Posts: 224
  • Joined: 24-November 11
  • LocationBangalore

Posted 13 January 2012 - 03:26 AM

Hi Anoop,

Welcome to the FusionCharts Forum :)

Thank you for the post.

You can set a custom tool tip for any of the data points using 'tooltext' attribute of the <set> element.

You may also customize the background & border color of the tool tip using the toolTipBorderColor and toolTipBgColor attributes respectively.

FusionCharts v3 allows you to put your tool tips in multiple lines with a little manual tweaking.

All that you have to do to add a line break in the tool-tip is to use the pseudo code {br}.

Ref. Code:
<set label="21%, France" value="17" toolText='$France {br}  -------------------------{br} secondLine  data {br}-------------------------- {br} 21%' displayValue='France'/>


Also, in order to apply a different color for the toolText you may use styles.

Ref. Code:
<styles>
  	<definition>
        	<style name='myToolTipFont' type='font' font='Arial' size='12' color='FFFFF'/>
  	</definition>
  	<application>
        	<apply toObject='ToolTip' styles='myToolTipFont' />
  	</application>
 </styles>


Please find attached screenshot of the chart rendered with the above settings done.

Also, for more information on 'Attributes for Tool Tip', please refer to the link below,
http://docs.fusionch...sc/ToolTip.html

Hope this helps !

Happy FusionCharting :)

Attached thumbnail(s)

  • Attached Image: CaptureToolTip.PNG

This post has been edited by Bindhu: 13 January 2012 - 03:30 AM

Help us improve our documentation with your precious feedback at:
http://documentation...sioncharts.com/

Thank you,
Bindhu

Follow us <http://http//twitter.com/fusioncharts> @Twitter!
0

Other Replies To This Topic

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic