Sign in to follow this  
MartinS

Help with odd tooltip text

Recommended Posts

I am having some issues with this xml in that when rendered, the tooltip text is both category labels separated by a comma. 

This is the original Xml which displays, on hover, 'category name, value'.

<chart animation = '0' bgAlpha='0,0' showBorder='0' useRoundEdges='1' setAdaptiveYMin='1'  numberScaleValue='1000,1000,1000' numberScaleUnit='K,M,B'  caption = '' xAxisName='' yAxisName =''  xAxisMinValue ='0' xAxisMaxValue ='0'   yAxisMinValue ='0' yAxisMaxValue ='1000000'  showDivLineValues ='1' adjustDiv ='0' numDivLines ='4' decimals='2'  showValues='1'  showLegend ='0' legendBorderAlpha ='0'  legendBgAlpha ='0'  legendPosition ='BOTTOM' legendShadow='0'  labelDisplay ='WRAP'  seriesNameInToolTip='0' >
<categories>
<category label='Estimated levy 2010/2011'/>
<category label='Illustrative levy'/>
</categories>
<dataset seriesName='Scheme based levy' alpha='100' includeInLegend='1' color='94DB70' showValues='0'>
<set value='232000'/>
<set value='232000'/>
</dataset>
<dataset seriesName='Risk based levy'  alpha='100' includeInLegend='1' color='70DBDB' showValues='0'>
<set value='683599' />
<set value='683599' />
</dataset>
<styles>
<definition>
<style name='myCaptionFont' type='font' font='Verdana' size='16' color='000000' />
<style name='myXAxisTitlesFont' type='font' font='Verdana' size='13' color='000000' bold='0' />
<style name='myYAxisTitlesFont' type='font' font='Verdana' size='13' color='000000' bold='0'/>
<style name='myYAxisValues' type='font' font='Verdana' color='000000' bold='0'/>
<style name='myDataLabels' type='font' font='Verdana' color='000000' bold='0'/>
<style name='myDataValues' type='font' font='Verdana' color='000000' bold='0'/>
</definition>
<application>
<apply toObject='Caption' styles='myCaptionFont' />
<apply toObject='XAxisName' styles='myXAxisTitlesFont' />
<apply toObject='YAxisName' styles='myYAxisTitlesFont' />
<apply toObject='YAXISVALUES' styles='myYAxisValues' />
<apply toObject='DATALABELS' styles='myDataLabels' />
<apply toObject='DATAVALUES' styles='myDataValues'/>
</application>
</styles>
</chart>

This is the new code, which displays 'Series Name, Category Name, Value'

Can you please tell me which setting (or is it something to do with v3 as opposed to v2) that has caused the change in hover text?

Thanks

Martin

<chart animation='0' bgAlpha='0,0' showBorder='0' useRoundEdges='1' setAdaptiveYMin='1' numberScaleValue='1000000,1000' numberScaleUnit='M,B' caption='' xAxisName='' yAxisName='' xAxisMinValue='0' xAxisMaxValue='0' yAxisMinValue='0' yAxisMaxValue='1000000' showDivLineValues='1' adjustDiv='0' numDivLines='4' decimals='2' showValues='1' showLegend='0' labelDisplay='Wrap' exportEnabled='1' exportHandler='' exportAtClient='1' exportShowMenuItem='0' exportAction='download'>
<categories>
<category label='Estimated levy 2010/2011'/>
<category label='Illustrative levy'/>
</categories>
<dataset seriesName='Scheme based levy' alpha='100' includeInLegend='1' color='5074D1' showValues='0' >
<set value='232000'/>
<set value='232000'/>
</dataset>
<dataset seriesName='Risk based levy' alpha='100' includeInLegend='1' color='840006' showValues='0' >
<set value='683599'/>
<set value='683599'/>
</dataset>
<styles>
<definition>
<style name='myCaptionFont' type='font' font='Arial' size='16' color='000000' />
<style name='myXAxisTitlesFont' type='font' font='Arial' size='13' color='000000' bold='0' />
<style name='myYAxisTitlesFont' type='font' font='Arial' size='13' color='000000' bold='0' />
<style name='myYAxisValuesFont' type='font' font='Arial' color='000000' bold='0' />
<style name='myDataLabelsFont' type='font' font='Arial' color='000000' bold='0' />
<style name='myDataValuesFont' type='font' font='Arial' color='000000' bold='0' />
<style name='myToolTipFont' type='font' font='Arial' color='E65032' bold='0' />
</definition>
<application>
<apply toObject='CAPTION' styles='myCaptionFont' />
<apply toObject='XAXISNAME' styles='myXAxisTitlesFont' />
<apply toObject='YAXISNAME' styles='myYAxisTitlesFont' />
<apply toObject='YAXISVALUES' styles='myYAxisValuesFont' />
<apply toObject='DATALABELS' styles='myDataLabelsFont' />
<apply toObject='DATAVALUES' styles='myDataValuesFont' />
<apply toObject='TOOLTIP' styles='myToolTipFont' />
</application>
</styles>
</chart>

Share this post


Link to post
Share on other sites
Guest Basundhara Ghosal

Hi Martin,

In case you are using FusionCharts Free, then the default format of the hoverText that would get displayes is 'category name, value'.

In case you are using FusionCharts V3, then the default format of the toolTip would get displayed as 'Series Name, Category Name, Value'.

However, in case you need to customize the text of the tooltip, please try using the "toolText" attribute.

ref.- http://www.fusioncharts.com/docs?/AttDesc/ToolTip.html

Hope this helps.

Share this post


Link to post
Share on other sites

Thanks.

I am using a purchased version of v3, and this is obviously a change from v2.  In this instance, the text is too long to display correctly as the chart is quite narrow and tall.  I tried with the tooltext attribute, but it seems to ignore the default number formatting - what dispalys by default is, say 68K, but when using the tooltext attribute, it shows the value as 68836.

I would expect the formatting to be consistent, and therefore can't use the tooltext unless I format the numbers to match Fusion's format.

Any suggestions?

Thanks

Martin

Share this post


Link to post
Share on other sites
Guest Basundhara Ghosal

Hi,

Could you please send us the XML codes that you are using, so that we might test it in our Lab?

Also, could you please send us the screen-shot of the issue that you are facing, as an attachment?

Awaiting your reply.

Share this post


Link to post
Share on other sites
Guest Madhumita

Hello,

I'm afraid, number formatting can not applied to the toolText value. It is considered as a string altogether. You have to give the formatted value itself in the toolText attribute.

Share this post


Link to post
Share on other sites
Guest Basundhara Ghosal

Hi,

You are welcome.

Keep smiling and keep FusionCharting. :D

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