Error Tooltip Display When Use Stackedcolumn2D Chart With Js

Recommended Posts

when use stackedColumn2d to render chart with js, and the values are all 0,


like this:





and xml data is:


<chart labelDisplay='wrap' caption='' yAxisName='' showvalues='0' stack100Percent='1' showPercentValues='1' formatNumber='0' formatNumberScale='0' ><categories><category label='2012-11月' /> <category label='2012-12月' /> <category label='2013-1月' /> <category label='2013-2月' /> <category label='2013-3月' /> <category label='2013-4月' /> </categories><dataset seriesName='test1' color='AFD8F8'><set  value='0' /> <set  value='0' /> <set  value='0' /> <set  value='0' /> <set  value='0' /> <set  value='0' /> </dataset><dataset seriesName='test2' color='9ACD32'><set  value='0' /> <set  value='0' /> <set  value='0' /> <set  value='0' /> <set  value='0' /> <set  value='0' /> </dataset></chart>



please check it ,thanks


Share this post

Link to post
Share on other sites



Welcome to FusionCharts Forum  :)


Since all the values supplied to the dataset of the StackedColumn2D chart are all 0, the tooltip shows NaN. You need to supply a non-zero value to atleast one dataset of a stacked column to render the chart correctly. 


Also, you may use the attribute "toolText" in the set element to display custom tool tips.


Hope this helps.

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