FusionCharts Forum: How to change the tooltip values in stacked chart - FusionCharts Forum

Jump to content

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

How to change the tooltip values in stacked chart

#1 User is offline   Periyasamy 

  • Advanced Member
  • PipPipPipPip
  • Group: Members
  • Posts: 30
  • Joined: 15-February 10

Posted 08 March 2010 - 03:49 AM

Hi,



I use the stacked chart. It works fine. It draws the chart with different color for set of values,



For example consider in my unit the first time pass is 40% and the total time pass is 100%. When we assign both values the chart is drawn for First time pass is 40% in a color and total time pass is 100% with another color.



Here i want to change as below,

First time pass 40% should draw with a color and total time pass 100% should drawn as 100%-40% that is 60%.. So the total time pass is drawn as 60%. Its right. but here i want to show the values on the tooltip as 100% instead of 60%.



Anybody knows how to change tooltip values in a stacked chart. I would appreciate your help.





Thanks & Regards,

Periyasamy.R
0

Other Replies To This Topic

#2 User is offline   Madhumita 

  • Supreme Being
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1434
  • Joined: 04-September 09

Posted 08 March 2010 - 04:00 AM

Hi,

You can use the toolText attribute in the <set> element to display your custom toolTip.

e.g. <set label='2008' value='60' toolText='100%' />

Regards,
Madhumita Chakraborty

Follow us on Twitter :)
0

Other Replies To This Topic

#3 User is offline   Periyasamy 

  • Advanced Member
  • PipPipPipPip
  • Group: Members
  • Posts: 30
  • Joined: 15-February 10

Posted 08 March 2010 - 04:08 AM

Hi Madhumita,



Thanks for your quick reply.

I will apply this.



Thanks & Regards,

Periyasamy.R
0

Other Replies To This Topic

#4 User is offline   Madhumita 

  • Supreme Being
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1434
  • Joined: 04-September 09

Posted 08 March 2010 - 04:13 AM

Hey,

You are most welcome.

If you are using FusionCharts Free please use the hoverText attribute attribute instead of toolText.

Regards,
Madhumita Chakraborty

Follow us on Twitter :)
0

Other Replies To This Topic

#5 User is offline   Periyasamy 

  • Advanced Member
  • PipPipPipPip
  • Group: Members
  • Posts: 30
  • Joined: 15-February 10

Posted 08 March 2010 - 05:22 AM

Hi,



I use Fusionchart free version and as you said, i have used as below,



xmlIEMU.set(:value=>item[2], :hoverText=>item[3])



It shows the tooltext fine what i have assigned in item 3. But the Total pass time chart is drawn with the 100%. Its not drawn with 60%.



Any solution?. Please reply me..



Thanks & regards,

Periyasamy.
0

Other Replies To This Topic

#6 User is offline   Madhumita 

  • Supreme Being
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1434
  • Joined: 04-September 09

Posted 08 March 2010 - 05:37 AM

Hello,

If you wish to show the value as 60% you need to set it to 60 and not 100. FusionCharts scales on the value that is passed to it.

Regards,
Madhumita Chakraborty

Follow us on Twitter :)
0

Other Replies To This Topic

#7 User is offline   Periyasamy 

  • Advanced Member
  • PipPipPipPip
  • Group: Members
  • Posts: 30
  • Joined: 15-February 10

Posted 08 March 2010 - 06:35 AM

Hi,



I used rubyonrails code as below,



xmlIEMU.set(:value=>'60', :hoverText=>"Test tooltip")



But it's hoverText is shown as 60 Instead of 'Test tooltip'. What's wrong in this code?



--

Thanks

Periyasamy
0

Other Replies To This Topic

#8 User is offline   Basundhara Ghosal 

  • Supreme Being
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2459
  • Joined: 15-September 09

Posted 08 March 2010 - 07:41 AM

Hi,

Could you please try using single quote for the "hoverText" attribute instead of double quotes?

Ref.- hoverText='Test tooltip'

Hope this helps.

Regards,

Basundhara Ghosal

Follow us on Twitter :D
0

Other Replies To This Topic

#9 User is offline   Periyasamy 

  • Advanced Member
  • PipPipPipPip
  • Group: Members
  • Posts: 30
  • Joined: 15-February 10

Posted 08 March 2010 - 08:38 AM

Hi,



Thanks for your reply. I used the code hoverText or toolText using single quotes or double quotes as below,



for item in @arr_yielddataiemu

xmlIEMU.set(:value=>item[2],:hoverText=>'xyz')

end



The chart is drawn fine. But the tooltip text 'xyz' is not using.



Is there any wrong in my code.





Thanks & Regards,

Periyasamy.R
0

Other Replies To This Topic

#10 User is offline   Periyasamy 

  • Advanced Member
  • PipPipPipPip
  • Group: Members
  • Posts: 30
  • Joined: 15-February 10

Posted 08 March 2010 - 09:20 AM

Hi,



I have stacked chart.

First value 40% is drawn from 0 to 40%.

The second value 100% is drawn adding 100% from 41%.



Here i want to change the second step 100% from 0% to 100%..



Is this possible?



Can anybody help me plz?



Thanks & Regards,

Periyasamy
0

Other Replies To This Topic

#11 User is offline   Basundhara Ghosal 

  • Supreme Being
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2459
  • Joined: 15-September 09

Posted 08 March 2010 - 11:29 AM

Hi,

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

Awaiting your reply.

Regards,

Basundhara Ghosal

Follow us on Twitter :D
0

Other Replies To This Topic

#12 User is offline   Madhumita 

  • Supreme Being
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1434
  • Joined: 04-September 09

Posted 08 March 2010 - 11:40 AM

Hello,



Could you please attach the code you are using?



Quote

I have stacked chart.

First value 40% is drawn from 0 to 40%.

The second value 100% is drawn adding 100% from 41%.



Here i want to change the second step 100% from 0% to 100%..




>> For this you need to set the second value as 60.
Regards,
Madhumita Chakraborty

Follow us on Twitter :)
0

Other Replies To This Topic

#13 User is offline   Periyasamy 

  • Advanced Member
  • PipPipPipPip
  • Group: Members
  • Posts: 30
  • Joined: 15-February 10

Posted 08 March 2010 - 11:35 PM

Hi,



Please find the attachment which i use the xml in my code. The chart is drawn fine. But the hoverText is not working.





Please Let me know your reply



Thanks & Regards,

Periyasamy

Attached File(s)


0

Other Replies To This Topic

#14 User is offline   srividya_sharma 

  • Supreme Being
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 943
  • Joined: 01-October 07

Posted 09 March 2010 - 06:56 AM

Hi Periyaswamy,

The code seems to be correct.

Could you try this simple xml. It works for me.

xml = Builder::XmlMarkup.new

xml.graph(:caption=>'Monthly Unit Sales', :xAxisName=>'Month', :yAxisName=>'Units', :decimalPrecision=>'0', :formatNumberScale=>'0') do

xml.set(:name=>'Jan',:value=>'462',:hoverText=>'XYZ')

xml.set(:name=>'Feb',:value=>'857')

xml.set(:name=>'Mar',:value=>'671')

xml.set(:name=>'Apr',:value=>'494')

xml.set(:name=>'May' ,:value=>'761')

xml.set(:name=>'Jun',:value=>'960')

xml.set(:name=>'Jul',:value=>'629')

xml.set(:name=>'Aug',:value=>'622')

xml.set(:name=>'Sep',:value=>'376')

xml.set(:name=>'Oct' ,:value=>'494')

xml.set(:name=>'Nov',:value=>'761')

xml.set(:name=>'Dec',:value=>'960')

end


regards,
Srividya Sharma
0

Other Replies To This Topic

#15 User is offline   srividya_sharma 

  • Supreme Being
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 943
  • Joined: 01-October 07

Posted 09 March 2010 - 07:05 AM

Hi Periyaswamy,

Can you give us more details on the % issue?

Give us a screenshot of what you are getting and tell us what is it, that you want.

Maybe we can help better.

Thanks

Srividya :)

regards,
Srividya Sharma
0

Other Replies To This Topic

#16 User is offline   Periyasamy 

  • Advanced Member
  • PipPipPipPip
  • Group: Members
  • Posts: 30
  • Joined: 15-February 10

Posted 09 March 2010 - 08:18 AM

Hi,



Both of you thanks for your reply.



I use the Multiple-series 2D chart (FCF_MSColumn2D.swf). and used the :hoverText. It doesn't work for me.



But it really works fine other chart like barchart(FCF_Bar2D)



Can you reply how to use the hoverText for Multi-Series 2D chart?



Thanks in advance.:)

Periyasamy
0

Other Replies To This Topic

#17 User is offline   Periyasamy 

  • Advanced Member
  • PipPipPipPip
  • Group: Members
  • Posts: 30
  • Joined: 15-February 10

Posted 09 March 2010 - 08:31 AM

Hi,



Even i tried with :displayValue=>'xyz'

But it doesn't work for Multi-series column 2D chart, Stacked chart.



Thanks,

Periyasamy:P
0

Other Replies To This Topic

#18 User is offline   srividya_sharma 

  • Supreme Being
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 943
  • Joined: 01-October 07

Posted 09 March 2010 - 09:18 AM

Hi Periyaswamy,

For Multi-series charts, please specify the hoverText attribute in category tag.

Example:

 <categories font='Arial' fontSize='11' fontColor='000000'> <category name='N. America' hoverText='North America'/> <category name='Asia' /> <category name='Europe' /> <category name='Australia' /> <category name='Africa' />  </categories> 

in builder,

xml.category(:name=>'N.America',:hoverText=>'North America')

Hoep this solves the issue.:)

Srividya

regards,
Srividya Sharma
0

Other Replies To This Topic

#19 User is offline   Periyasamy 

  • Advanced Member
  • PipPipPipPip
  • Group: Members
  • Posts: 30
  • Joined: 15-February 10

Posted 09 March 2010 - 09:58 PM

Hi Srividhya,



Good this works fine when we use in Category attribute.



Could you tell me how to give the hoverText for "set" attributes of Dataset?



Thanks in advance.

Periyasamy.R:)
0

Other Replies To This Topic

#20 User is offline   Madhumita 

  • Supreme Being
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1434
  • Joined: 04-September 09

Posted 10 March 2010 - 04:23 AM

Hello,

I'm afraid, in FusionCharts Free, hoverText attribute is not supported by <set> elements within a <dataset>.

Regards,
Madhumita Chakraborty

Follow us on Twitter :)
0

Other Replies To This Topic

#21 User is offline   Periyasamy 

  • Advanced Member
  • PipPipPipPip
  • Group: Members
  • Posts: 30
  • Joined: 15-February 10

Posted 10 March 2010 - 04:44 AM

Hi,



Thanks for your reply. Now i came to known that the Fusioncharts free version is not supporting some features.





Regards,

Periyasamy.R
0

Other Replies To This Topic

#22 User is offline   Madhumita 

  • Supreme Being
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1434
  • Joined: 04-September 09

Posted 10 March 2010 - 05:07 AM

Hello,

Yes FusionCharts Free does not have certain features which have been integrated in FusionCharts V3. You should try the Trial Version of FusionCharts. It supports all the features that you presently require and more.

Regards,
Madhumita Chakraborty

Follow us on Twitter :)
0

Other Replies To This Topic

#23 User is offline   Periyasamy 

  • Advanced Member
  • PipPipPipPip
  • Group: Members
  • Posts: 30
  • Joined: 15-February 10

Posted 10 March 2010 - 07:10 AM

Hi,



You are absolutely right. I tried in Fusioncharts Trial version instead of free version. It supports the feature "hoverText".



Thanks for your support.:)



Regards,

Periyasamy.R
0

Other Replies To This Topic

#24 User is offline   Madhumita 

  • Supreme Being
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1434
  • Joined: 04-September 09

Posted 10 March 2010 - 07:41 AM

Hello,

You are most welcome.

Regards,
Madhumita Chakraborty

Follow us on Twitter :)
0

Other Replies To This Topic

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